Hi there! I need help with plotting in Matlab. I need to lot the real and imagin
ID: 3543619 • Letter: H
Question
Hi there! I need help with plotting in Matlab. I need to lot the real and imaginary parts of the following equation. For zeta = 0.01, and 0.02. I keep getting errors in my code when producing the plots. Any help with setting up the code and producing plots would be greatly appreciated, and will rate HIGHEST POSSIBLE for results. Thank you!
H(omega) = 1 - (omega/omega n)2/[1 - (omega/omega n)2]2 + [2 zeta omega/omega n]2 - i 2 zeta omega/omega n/[1 - (omega/omega n)2]2 + [2 zeta omega/omega n]2 the Z = x -iy complex format.Explanation / Answer
if you want to plot only real part of H vs w then use
plot(w,real(H))
if you wnt to plot only imaginary part of H vs w then use
plot(w,imag(H))
if you want magnitude of H vs w then use
plot(w,abs(H))
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.