Technical discussion about Matlab and issues related to Digital Signal Processing.
|
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 |
|
|
|
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. |
|
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 |
|
|
|
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 |