| New Reply |
How to measure the transfer function in Simulink? |
Share Thread | Thread Tools |
| Nov24-12, 01:25 PM | #1 |
|
|
How to measure the transfer function in Simulink?
Let's say I simulate a simple filter in simulink and I want to see the transfer function graph (bode plot) of it. What do I do to get Vout/ Vin? I tried using the "PS Divide" Block and divide the output voltage and the input voltage, but that didn't work. Could anyone help me out here?
This is what I tried: http://i1226.photobucket.com/albums/...n28x/bode1.jpg This is the graph I got: http://i1226.photobucket.com/albums/...n28x/bode2.jpg Thank you all very much. |
| Nov24-12, 05:18 PM | #2 |
|
|
The scale on your scope is way of. Hit the button next to the printer and uncheck the box saying something like "save only last 1000 data points". Simulate again and hit the button with the binoculars. Does the result seem to be correct now? Check with your analytical answer!
If no results appear, check the Matlab command window for warnings and errors. A divide block can cause problems for certain inputs. Also this setup does not create the bode plot of the system. A bode plot is the frequency response, here you got only one frequency. Further hints: A system can create a phase shift between the input and output. Comparing the input and output at the same instant of time gives no true information about the attenuation. How is this done in your model... |
| Nov24-12, 05:44 PM | #3 |
|
|
Circuit: http://i1226.photobucket.com/albums/...nalproyect.jpg Graph I get (instead of Sine Wave): http://i1226.photobucket.com/albums/...mulinkpic3.jpg |
| Nov25-12, 04:30 AM | #4 |
|
|
How to measure the transfer function in Simulink?
Try changing solver. Now you are using ODE45, but other might be better for this system of equations.
http://www.mathworks.se/help/simulin...-a-solver.html |
| New Reply |
| Thread Tools | |
Similar Threads for: How to measure the transfer function in Simulink?
|
||||
| Thread | Forum | Replies | ||
| Simulink Ramp Function. | Math & Science Software | 0 | ||
| S-function simulink for serial communication | Math & Science Software | 0 | ||
| Transfer Matricies in Simulink | Math & Science Software | 0 | ||
| errors with s-function level 1 in simulink | Math & Science Software | 0 | ||
| S-function! in Simulink/Matlab | Differential Equations | 0 | ||