This preview shows page 1. Sign up to view the full content.
Unformatted text preview: NOTE: MATLAB step and bode commands If you have a frequency response function of the form: Y j b 1 j b o a 2 j 2 a 1 j a o Take all of the j terms and replace them with something else, for example, s, so that: Y s b 1 s b o a 2 s 2 a 1 s a o Now, you can use this function to generate a bode plot and step response of your Y(j) function in MATLAB. Simply define some variablesys for exampleand use the step and bode commands as follows: >>sys = tf([b 1 b o ] , [a 2 , a 1 , a o ]) >>step(sys) >>bode(sys) Try entering the example below for b 1 = 0, b o = 1, a 2 = 1, a 1 = 2, and a o = 3, and see what you get. Use this method to make Bode and step response plots for this post-lab. Do not forget to label your axes of your step response! >> sys = tf(1, [1, 2, 3]); >> step(sys) >> bode(sys) R L C V in (t) V out (t)...
View Full Document
- Fall '07