Plotting Transfer Functions Using Matlab

Click For Summary
SUMMARY

The discussion centers on plotting transfer functions using MATLAB, specifically through a Bode plot program. The user encountered an error indicating that 'tf' is an unknown variable while attempting to execute commands for plotting. They successfully extracted zeros, poles, and gain using the 'tf2zp' function with specific numerator and denominator arrays. The user seeks alternative methods to plot frequency response and bandwidth due to issues with the initial program.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of transfer functions and their components (zeros, poles, gain)
  • Knowledge of Bode plots and frequency response analysis
  • Experience with MATLAB functions such as 'tf2zp' and 'bode'
NEXT STEPS
  • Learn how to use the 'tf' function in MATLAB to define transfer functions
  • Explore the 'bode' function in MATLAB for plotting frequency response
  • Investigate alternative MATLAB toolboxes for control system analysis
  • Research methods for troubleshooting common MATLAB errors related to transfer functions
USEFUL FOR

Control engineers, MATLAB users, and students studying systems dynamics who need to plot transfer functions and analyze frequency responses.

mpm
Messages
82
Reaction score
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

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:
Physics news on Phys.org
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 can't figure out how to plot this to find the frequency response and bandwidth.

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

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K