plot frequency response of simulink system
2 views (last 30 days)
Show older comments
Hi guys,
I'm working on digital filter, I have the transfer function of the filter in z-transform and I'm building the filter in simulink using basic models. The problem is I want to know the effect of the fixed point quantization of internal modules (integrators, differentiators, etc...) In other words, I have a reference plot of the targeted transfer function. I need a way to plot the transfer function of the filter built in simulink using basic models. Then I will compare the product transfer function to the reference one.
Is this feasible ? Also I need some advice about the flow I'm using.
I have heard of ltiview tool but it uses S-domain functions not z-transform
Thanks in advance.
0 Comments
Answers (3)
Arkadiy Turevskiy
on 14 Apr 2015
There are tools for linearizing Simulink models - i.e., getting a transfer function from a Simulink model. You can take a look our linearization page for that.
What you have to keep in mind though is that transfer functions are used to represent linear time-invariant systems. When you start adding quantization effects and fixed-point scaling in Simulink, you are making your system nonlinear. Think about the most basic example when you represent a signal with either 0 or 1. A small change in the input signal is going to result in either no change in the output signal, or in a jump from one discrete value to another.
In other words, you can linearize a Simulink model using the tools on the page I linked to, but the transfer function is only capturing the linear behavior of the model.
Hope this helps.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!