I have a function for which I need to create a Bode plot and Nyquist Plot. The function describes a rotor, and is as follows. I'v built it up in parts – Hxx is a function of w (omega). k=spring stiffness, c=damping coefficient, l=length of shaft, I=moment of inertia, J=Diametral Inertia, W=rotational speed(rad/s), w=an array of frequencies between w=0:100:30000
n1=k*(l^2);n2=w.*(i*c*(l^2));n3=w.^2.*I;d1=(k^2)*(l^2);d2=w.*(2*i*c*k*(l^2));d3=(w.^2).*((c^2*l^2)+(2*I*k)+(W*J/l)^2);d4=(w.^3).*(2*i*c*I);d5=(w.^4).*((I/l)^2);Hxx=(n1+n2-n3)./(d1+d2-d3-d4+d5);
I can happily perform the following plots 1. plot(w, Hxx);
and
realHxx=real(Hxx);imagHxx=imag(Hxx);% Calculate the magnitude
mag=sqrt(realHxx.^2+imagHxx.^2);plot(w, mag);
but I am now stuck as to how to produce a Bode and Nyquist plot. I suspect it is something with how to convert the function into an LTI model using frd, but I'm simply out of my depth with the documentation and cannot see how to proceed. Can anyone help please.
Don Howard
Best Answer