Thread Subject: Problem with grid of Nichols plot

Subject: Problem with grid of Nichols plot

From: Cedric Cedric

Date: 13 Jan, 2009 08:23:02

Message: 1 of 2

hi,

I want to plot an function with nichols
My function is >> F=tf([23.7],[0.0081 1 0])
Then >> nichols(F),ngrid

It works with no problem, but I want to modify the grid
I have the grid for 6dB, 3dB, 1dB
I just want to have a grid for 2.3dB.

How can I dot it ?

thanks

Subject: Problem with grid of Nichols plot

From: Keietsu Itamiya

Date: 9 Dec, 2009 03:24:02

Message: 2 of 2

"Cedric Cedric" <cedric.mathieu@ires.in2p3.fr> wrote in message <gkhj16$cjn$1@fred.mathworks.com>...
>...
> I just want to have a grid for 2.3dB.

You can have a grid for 2.3dB by modifying "nicchart.m" as follows;

1.
% Gain points (in dB)
g1 = [6 3 2 1 .75 .5 .4 .3 .25 .2 .15 .1 .05 0 -.05 -.1 ...
      -.15 -.2 -.25 -.3 -.4 -.5 -.75 -1 -2 -3 -4 -5 -6 -9 ...
      -12 -16 -20:-10:max(-40,gmin) gmin(:,gmin<-40)];
------>

% Gain points (in dB)
g1 = [6 3 2.3 2 1 .75 .5 .4 .3 .25 .2 .15 .1 .05 0 -.05 -.1 ...
      -.15 -.2 -.25 -.3 -.4 -.5 -.75 -1 -2 -3 -4 -5 -6 -9 ...
      -12 -16 -20:-10:max(-40,gmin) gmin(:,gmin<-40)];
2.
% (2) Generate isogain lines for following gain values:
g2 = [6 3 1 .5 .25 0 -1 -3 -6 -12 -20 -40:-20:gmin];
------>
% (2) Generate isogain lines for following gain values:
g2 = [6 3 2.3 1 .5 .25 0 -1 -3 -6 -12 -20 -40:-20:gmin];

The M-file, "nicchart.m", can be found in "(MATLAB folder)\toolbox\control\ctrlguis."

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com