Plotting Transfer Functions Using Matlab

  • MATLAB
  • Thread starter mpm
  • Start date
  • #1
mpm
82
0
I am using a bode plot program using Matlab to try and plot transfer functions.

Here is the program I have:
http://www.swarthmore.edu/NatSci/echeeve1/Ref/Bode/BodePlotGui.html [Broken]

Everytime I try and type in the command that it says to use, it gives me a tf is an unknown variable.

Does anyone know how I can get this to work?
 
Last edited by a moderator:

Answers and Replies

  • #2
mpm
82
0
I figured out how to get the zeros, poles, and gain by using this:

num = [2 3];
den = [1 4 0 5];
[z,p,k] = tf2zp(num,den)

But I cant figure out how to plot this to find the frequency response and bandwidth.

Note: Im just trying to find alternatives since I can't get this other program to work. Anything that works I will use.
 

Related Threads on Plotting Transfer Functions Using Matlab

Replies
6
Views
5K
  • Last Post
Replies
9
Views
29K
  • Last Post
Replies
2
Views
33K
  • Last Post
Replies
1
Views
37K
  • Last Post
Replies
3
Views
11K
  • Last Post
Replies
1
Views
4K
Replies
1
Views
4K
  • Last Post
Replies
1
Views
2K
Replies
4
Views
6K
Top