bode plot #2

  • Follow


Hello I have a function for frequency analysis. I have equations something like on this link, http://www.mathworks.com/access/helpdesk/help/toolbox/control/ref/bode.html  first example, but whenever I copy that to look at it,  Undefined function or method 'tf' for input arguments of type 'double'. this error shows up, I cannot use the regular plot function, because i have imaginary number.
 
0
Reply Ongun 6/12/2010 3:06:05 AM

"Ongun Palaoglu" <ongun@mac.com> wrote in message <huutit$7pg$1@fred.mathworks.com>...
> Hello I have a function for frequency analysis. I have equations something like on this link, http://www.mathworks.com/access/helpdesk/help/toolbox/control/ref/bode.html  first example, but whenever I copy that to look at it,  Undefined function or method 'tf' for input arguments of type 'double'. this error shows up, I cannot use the regular plot function, because i have imaginary number.
>  

Hi Ongun, Do you have the Control System Toolbox?  That error indicates that you don't have tf.m in your installation. When you say that you have a function "something like" example one on bode.html, do you have a continuous system function?, or is it discrete?

If you have a system represented by a constant coefficient linear difference equation, you can use fvtool to visualize the frequency response.

Wayne
0
Reply Wayne 6/12/2010 1:13:04 PM


"Ongun Palaoglu" <ongun@mac.com> wrote in message <huutit$7pg$1@fred.mathworks.com>...
> Hello I have a function for frequency analysis. I have equations something like on this link, http://www.mathworks.com/access/helpdesk/help/toolbox/control/ref/bode.html  first example, but whenever I copy that to look at it,  Undefined function or method 'tf' for input arguments of type 'double'. this error shows up, I cannot use the regular plot function, because i have imaginary number.
>  

a hint:
- make sure you own and have properly installed the control system tbx...

     ver control;
% should yield a valid output...

us
0
Reply us 6/12/2010 1:15:09 PM

2 Replies
319 Views

(page loaded in 0.06 seconds)

Similiar Articles:













7/22/2012 6:42:25 PM


Reply: