Matlab Control Systems Question

Click For Summary
SUMMARY

This discussion addresses the challenge of plotting Bode plots for the exponential function e^(-sT) in Matlab. The "bode" function requires a transfer function (TF), zero-pole-gain (ZPK), state-space (SS), or frequency response data (FRD) as input. A solution is provided by defining a frequency vector and calculating the amplitude and phase using the exponential function. The final Bode plots can be generated using the semilogx function for both amplitude and phase.

PREREQUISITES
  • Familiarity with Matlab programming
  • Understanding of Bode plots and their significance in control systems
  • Knowledge of transfer functions and their representations (TF, ZPK, SS, FRD)
  • Basic concepts of complex numbers and their manipulation
NEXT STEPS
  • Learn how to define and manipulate frequency vectors in Matlab
  • Explore the use of the "bode" function with various system representations
  • Study the implications of time delays in control systems
  • Investigate advanced plotting techniques in Matlab for control system analysis
USEFUL FOR

Control systems engineers, Matlab users, students studying control theory, and anyone interested in advanced plotting techniques for system analysis.

mcfetridges
Messages
13
Reaction score
0
I am having a problem with plotting Bode plots in Matlab. We are required to plot a e^(-sT) (simple time shift) as a Bode plot. The "bode" function in Matlab requires either a TF, ZPK, SS, or FRD system as its first input. I cannot seem to find out how to plot the exponential. I can easily plot the normal transfer functions however. If anyone has any idea that would be great.

Stephen McFetridge
University of Alberta
 
Physics news on Phys.org
mcfetridges said:
I am having a problem with plotting Bode plots in Matlab. We are required to plot a e^(-sT) (simple time shift) as a Bode plot. The "bode" function in Matlab requires either a TF, ZPK, SS, or FRD system as its first input. I cannot seem to find out how to plot the exponential. I can easily plot the normal transfer functions however. If anyone has any idea that would be great.

Stephen McFetridge
University of Alberta
Define a frequency vector, for instance:
omega = 0.1:0.01:10
% omega goes from 0.1 rad/s to 10 rad/s by steps of o.o1 seconds.
Then define your function
H = exp(-i*omega*T)
where T is the known delay
The amplitude in dB is:
Amp = 20*log10(abs(H))
and the phase in radians
Phase = angle(H)
Now you can draw the Bode plots as
semilogx(omega, Amp)
semilogx(omega, Phase)
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
Replies
1
Views
2K
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K