Question: PAY ATTENTION TO MATLAB CODE RESTRICTIONS ON THE ATTACHED IMAGE!!! Write a Matlab function called computeBode ( ) that does the following: a . Accepts
PAY ATTENTION TO MATLAB CODE RESTRICTIONS ON THE ATTACHED IMAGE!!!
Write a Matlab function called computeBode that does the following:
a Accepts as its input arguments in rads as well as a transfer function
b Returns two vectors, each as a function of in : in dB and
phase angle, in deg where phase angle is negative if the output lags behind the
input.
c Also returns values: gain crossover frequency in phase crossover
frequency in rads gain margin in dB and phase margin in deg Note: your
code must account for cases where magnitude never crosses unity gain andor phase
never crosses deg.
NO SYMBOLIC MATH.
You may NOT USE the following builtin Matlab functions:
rlocus rlocusplot pole zero bode margin phase or any others related to root locus or Bode analysis. Write your own code for all of that. Please do all plots in Matlab. Make sure you label your axes system variable name AND units, where applicable No symbolic math use in Matlab.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
