Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Discussion Groups

Discussion Groups | Matlab DSP | Re: handle to magnitude in bode plot

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

handle to magnitude in bode plot - Sergio Dominguez - Mar 18 16:20:00 2004



Hi all,
I'd like to draw/label/legend the magnitude part of a bode diagram plotted with
the bode command.
However, since the phase is drawn last, it is the current active graph, and
hence, all
my commands go to the phase.

I have not been able (although I have searched!!) to activate the gain plot,
does somebody know how to do it?

Thanks!

Sergio

--
BOFH excuse #294:

PCMCIA slave driver





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: handle to magnitude in bode plot - Sergio Dominguez - Mar 18 17:53:00 2004

I forgot to mention I am trying to do this from a script, clicking in the
window or going to the menu's is not an option!

Thanks again!

Sergio El A las 04:20 del 18 de Mar de 2004, Sergio Dominguez dijo:
> Hi all,
> I'd like to draw/label/legend the magnitude part of a bode diagram plotted
with the bode command.
> However, since the phase is drawn last, it is the current active graph, and
hence, all
> my commands go to the phase.
>
> I have not been able (although I have searched!!) to activate the gain plot,
> does somebody know how to do it?
>
> Thanks!
>
> Sergio
>
> --
> BOFH excuse #294:
>
> PCMCIA slave driver >
> _____________________________________
> /groups.php3
> Yahoo! Groups Links --
Bondage maybe, discipline never!
-- T.K.




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

RE: handle to magnitude in bode plot - Jeff Winter - Mar 18 18:01:00 2004

Hi Sergio,

Why not use:

[mag,phase,w] = bode(sys);

Then you can subplot your results and add legends etc .

Jeff

------------------------
Jeff Winter
Snr Design Engineer
Aeroflex
www.aeroflex.com -----Original Message-----
From: Sergio Dominguez [mailto:]
Sent: Thursday, March 18, 2004 4:20 PM
To:
Cc: Sergio
Subject: [matlab] handle to magnitude in bode plot Hi all,
I'd like to draw/label/legend the magnitude part of a bode diagram plotted
with the bode command.
However, since the phase is drawn last, it is the current active graph, and
hence, all
my commands go to the phase.

I have not been able (although I have searched!!) to activate the gain plot,
does somebody know how to do it?

Thanks!

Sergio

--
BOFH excuse #294:

PCMCIA slave driver
_____________________________________
/groups.php3
Yahoo! Groups Links





(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: handle to magnitude in bode plot - Sergio Dominguez - Mar 19 9:17:00 2004

Hi Jeff,

Thanks for you answer.

That is how I am doing it right now, but that means an extra overload
in labelling which is automatically done with matlab's bode (freq (Hz),
Mag (dB)... stuff). I did a little crappy function which plots the bode
that way and labels and returns one handle to each subplot, but I lose
much of the functionalities of matlab's bode and by adding all the extra stuff
I felt like reinventing the wheel

plotting matlab's bode and getting a handle from command line
to the mag plot has to be possible, hasn't it?

Thanks!

Sergio El A las 06:01 del 18 de Mar de 2004, Jeff Winter dijo:
> Hi Sergio,
>
> Why not use:
>
> [mag,phase,w] = bode(sys);
>
> Then you can subplot your results and add legends etc .
>
> Jeff
>
> ------------------------
> Jeff Winter
> Snr Design Engineer
> Aeroflex
> www.aeroflex.com > -----Original Message-----
> From: Sergio Dominguez [mailto:]
> Sent: Thursday, March 18, 2004 4:20 PM
> To:
> Cc: Sergio
> Subject: [matlab] handle to magnitude in bode plot > Hi all,
> I'd like to draw/label/legend the magnitude part of a bode diagram plotted
> with the bode command.
> However, since the phase is drawn last, it is the current active graph, and
> hence, all
> my commands go to the phase.
>
> I have not been able (although I have searched!!) to activate the gain plot,
> does somebody know how to do it?
>
> Thanks!
>
> Sergio
>
> --
> BOFH excuse #294:
>
> PCMCIA slave driver >
> _____________________________________
> /groups.php3
> Yahoo! Groups Links --
"I'm in Pittsburgh. Why am I here?"
-- Harold Urey, Nobel Laureate




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )