Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Bode phase plot

Subject: Bode phase plot

From: Anneli

Date: 27 Mar, 2009 09:51:01

Message: 1 of 5

Hi,

I want to plot just the phase of a transfer function. According to the MATLAB Help the following command should do that:
bode(m1,'ap','P')

However, I get the message
??? Error using ==> rfinputs
Invalid syntax.

Why does it not work?
Is there another command that can be used? The corresponding for just plotting the amplitude is bodemag. Does it exist one for the phase as well?

Kind regards,
Anneli

Subject: Bode phase plot

From: Craig Buhr

Date: 27 Mar, 2009 13:46:43

Message: 2 of 5

The syntax

bode(m1,'ap','P') is valid when m1 is a System Identification Toolbox model.

If m1 is a LTI object(e.g. a Control System Toolbox model) you can use the
following

h = bodeplot(m1);
setoptions(h,'MagVisible','off');

-craig




"Anneli " <orvnas.A.removeA@kth.se> wrote in message
news:gqi7i5$24$1@fred.mathworks.com...
> Hi,
>
> I want to plot just the phase of a transfer function. According to the
> MATLAB Help the following command should do that:
> bode(m1,'ap','P')
>
> However, I get the message
> ??? Error using ==> rfinputs
> Invalid syntax.
>
> Why does it not work?
> Is there another command that can be used? The corresponding for just
> plotting the amplitude is bodemag. Does it exist one for the phase as
> well?
>
> Kind regards,
> Anneli

Subject: Bode phase plot

From: Anneli

Date: 30 Mar, 2009 08:01:02

Message: 3 of 5

Thank you, this was helpful!

/Anneli

"Craig Buhr" <Craig.Buhr@mathworks.com> wrote in message <gqilc5$evk$1@fred.mathworks.com>...
> The syntax
>
> bode(m1,'ap','P') is valid when m1 is a System Identification Toolbox model.
>
> If m1 is a LTI object(e.g. a Control System Toolbox model) you can use the
> following
>
> h = bodeplot(m1);
> setoptions(h,'MagVisible','off');
>
> -craig
>
>
>
>
> "Anneli " <orvnas.A.removeA@kth.se> wrote in message
> news:gqi7i5$24$1@fred.mathworks.com...
> > Hi,
> >
> > I want to plot just the phase of a transfer function. According to the
> > MATLAB Help the following command should do that:
> > bode(m1,'ap','P')
> >
> > However, I get the message
> > ??? Error using ==> rfinputs
> > Invalid syntax.
> >
> > Why does it not work?
> > Is there another command that can be used? The corresponding for just
> > plotting the amplitude is bodemag. Does it exist one for the phase as
> > well?
> >
> > Kind regards,
> > Anneli
>

Subject: Bode phase plot

From: stefano

Date: 25 Jun, 2010 17:11:06

Message: 4 of 5

hem...what bout the magnitude on??

"Anneli " <orvnas.A.removeA@kth.se> wrote in message <gqi7i5$24$1@fred.mathworks.com>...
> Hi,
>
> I want to plot just the phase of a transfer function. According to the MATLAB Help the following command should do that:
> bode(m1,'ap','P')
>
> However, I get the message
> ??? Error using ==> rfinputs
> Invalid syntax.
>
> Why does it not work?
> Is there another command that can be used? The corresponding for just plotting the amplitude is bodemag. Does it exist one for the phase as well?
>
> Kind regards,
> Anneli

Subject: Bode phase plot

From: stefano

Date: 25 Jun, 2010 17:16:04

Message: 5 of 5

h = bodeplot(m1);
setoptions(h,'PhaseVisible','off');
ok



"stefano " <stefano.cosentino09@imperial.ac.uk> wrote in message <i02nva$6o3$1@fred.mathworks.com>...
> hem...what bout the magnitude on??
>
> "Anneli " <orvnas.A.removeA@kth.se> wrote in message <gqi7i5$24$1@fred.mathworks.com>...
> > Hi,
> >
> > I want to plot just the phase of a transfer function. According to the MATLAB Help the following command should do that:
> > bode(m1,'ap','P')
> >
> > However, I get the message
> > ??? Error using ==> rfinputs
> > Invalid syntax.
> >
> > Why does it not work?
> > Is there another command that can be used? The corresponding for just plotting the amplitude is bodemag. Does it exist one for the phase as well?
> >
> > Kind regards,
> > Anneli

Tags for this Thread

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.

Contact us