Peak Finder / Bandpass Filter errors on SimElectrical
Show older comments
I am having an issue with two blocks on SimElectrical:
1) From a simple sine wave input, how do I increase samples per channel to above 3 such that I can use the Peak Finder block?
2) My bandpass filter (attached to my sine wave output) is giving me an error as follows: Output port 1 of 'Circuit/Bandpass Filter' is a one dimensional vector with 1 elements.'
Any help would be appreciated,
J C
Answers (1)
Sabin
on 23 Dec 2025
0 votes
1) Increasing samples per channel:
To increase samples per channel from a sine wave, adjust the sample time parameter in your Sine Wave block or configure the solver settings (reduce step size) to generate more data points. Alternatively, use a Rate Transition or Resample block to upsample the signal.
2) Bandpass filter output error:
The error indicates your bandpass filter output is a 1-element vector, but downstream blocks expect more samples.
Categories
Find more on Signal Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!