Problem with output signal in simulink
Show older comments
hello, i have created 3 filters with fdatool, a low pass (20-250 hz), a band pass (250-2000 Hz) and a high pass (2000-20000 Hz9, export these 3 filters and put them in simulink to test the 3 filters The problem is that when introducing a 100 Hz signal it gives me a signal of 1 [V] in the low pass and 0.2 in the band pass and 1 [V] in the highpass. The expected response is that it delivers 1 [V] in the band pass and the other signals are attenuated ( Figure 1). Attached images of the configurations
Figure 1:

other settings:
Complete filters:



6 Comments
Mathieu NOE
on 3 Sep 2021
hello again Juan
did you test your filters first - a matlab script to do bode plots ?
Juan Chehin
on 3 Sep 2021
Juan Chehin
on 4 Sep 2021
Paul
on 4 Sep 2021
I don't have an explanation but have two comments:
a. I think the expected response would be to deliver 1V in the low pass and be attenuated in the bandpass and highpass.
b. It looks like the the low pass filter has a sample frequency of 600 Hz. But the Sine wave source is sampled at 1000 Hz. This combination will result in undesirable shifts in the effective input to the filter and so the response won't be what you're expecting. What are the sample frequencies (Fs) of the other two filters?
Juan Chehin
on 5 Sep 2021
Juan Chehin
on 5 Sep 2021
Edited: Juan Chehin
on 5 Sep 2021
Answers (0)
Categories
Find more on Single-Rate Filters in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!