MATLAB Nyquist Plot Help: Transforming Numerator to Transfer Function"

  • Thread starter Thread starter khedira
  • Start date Start date
  • Tags Tags
    Matlab Plot
Click For Summary

Discussion Overview

The discussion revolves around forming a transfer function in MATLAB from a given numerator and denominator, specifically focusing on the challenges encountered when the numerator includes a radical expression. Participants explore the use of MATLAB commands for creating transfer functions and generating Nyquist plots.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant expresses difficulty in transforming a complex numerator into a transfer function format suitable for MATLAB's nyquist command.
  • Another participant references the MATLAB Controls Toolbox documentation, suggesting the use of the tf command to create a transfer function from polynomial coefficients.
  • A later reply indicates that the original poster encountered an error when attempting to use the tf command, specifically a message about cell contents reference from a non-cell array object.
  • One participant emphasizes that numerator and denominator should be in the form of polynomial coefficients, not symbolic expressions, and notes their unfamiliarity with radical transfer functions.

Areas of Agreement / Disagreement

Participants do not reach a consensus on how to handle the radical in the numerator, and there are differing levels of familiarity with the relevant MATLAB functions and concepts.

Contextual Notes

There is uncertainty regarding the correct transformation of the numerator due to its radical form, and participants highlight potential limitations in their understanding of radical transfer functions compared to purely rational ones.

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

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
9K
Replies
2
Views
2K