MATLAB Nyquist Plot Help: Transforming Numerator to Transfer Function"

  • Thread starter Thread starter khedira
  • Start date Start date
  • Tags Tags
    Matlab Plot
AI Thread Summary
The discussion focuses on creating a transfer function in MATLAB from a given numerator and denominator for use with the Nyquist plot. The numerator provided is complex and involves a square root, which complicates its transformation into a standard transfer function format. Users are advised to use the tf command to define the transfer function, but one participant encountered an error related to cell array references. The conversation highlights the importance of ensuring that both numerator and denominator are expressed as polynomial coefficients. The issue remains unresolved for radical transfer functions, as most contributors are familiar only with rational transfer functions.
khedira
Messages
11
Reaction score
0
i understand that the "nyquist" command in MATLAB requires one to key in the transfer function..

however, i am stuck here as i am unable to form a transfer function from the following numerator and denominator:

num = s-3/2-1/2*(-24*s+1)^(1/2)
den = 1.25*s^2 +3.75*s + 2.5

i know that the den can easily be form by [1.25 3.75 2.5] (assuming that numerator has degree of 2 only). however, how can i transform my num to be a tf form? please advise. thank you.
 
Physics news on Phys.org
According to the MATLAB Controls Toolbox documentation, you can form a transfer function from numerator and denominator using the tf command:
http://www.mathworks.com/help/toolbox/control/ref/tf.html

You can then run the nyquist function on the resultant transfer function:
http://www.mathworks.com/help/toolbox/control/ref/nyquist.html
 
Last edited by a moderator:
MATLABdude said:
According to the MATLAB Controls Toolbox documentation, you can form a transfer function from numerator and denominator using the tf command:
http://www.mathworks.com/help/toolbox/control/ref/tf.html

You can then run the nyquist function on the resultant transfer function:
http://www.mathworks.com/help/toolbox/control/ref/nyquist.html

Hi MATLABdude,

That is the problem. I have tried that before but it generates the following error:

"? Cell contents reference from a non-cell array object."

Do you have any resolution to the above error?
 
Last edited by a moderator:
Re-visit the MATLAB documentation page for Transfer Function:
http://www.mathworks.com/help/toolbox/control/ref/tf.html

Numerator and denominator are in the form of polynomial coefficients, not the actual symbolic form. For instance, s^2+2s-1 would be [1, 2, -1]. I believe this is the case with most of the controls toolbox.

EDIT: How did I miss the point of your post? Shows me to answer right before going to bed... Unfortunately, I'm not familiar with radical transfer functions. All of my familiarity is with purely rational transfer functions.
 
Last edited:

Similar threads

Back
Top