Peak Finder / Bandpass Filter errors on SimElectrical

12 views (last 30 days)
James
James on 25 May 2012
Answered: Sabin on 23 Dec 2025 at 19:18
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
Sabin on 23 Dec 2025 at 19:18
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!