How do I plot the bode plot of this transfer function?

10 views (last 30 days)
Real Name
Real Name on 28 Dec 2016
Answered: Suhan on 3 Jan 2017
y = 1./((Z0./Zl).^2 * j.*sin(B .* d)/2 + exp(j .* B .* d).*(1 + Z0 ./ Zl))
I've been just doing plot(x,abs(y)). Will this yield the bode plot? I checked the documentation for the bode plot but I am not really understanding how to get my formula into a dynamic system model.

Accepted Answer

Suhan
Suhan on 3 Jan 2017
I understand that you would like to obtain the bode plot of a dynamic system in MATLAB.
Although I did not understand the terminology you have used in the equation you had mentioned in the question, I would like to point out a few things in general context.
First of all, assuming 'x' as input and 'y' as the output of the dynamic system, the plot(x, abs(y(x))) does not give you the Bode plot. Note that Bode plot is in logarithmic scale and it requires the transfer function corresponding to the linear system.
In order to use 'bode()' in MATLAB, you need to first get the state space or transfer function representaion of your linear (or linearised) system. This information is given as input to the 'bode()' function. Once you have this, use the following documentation on bode() function to know more about its use: https://in.mathworks.com/help/control/ref/bode.html
I hope you will find this post useful.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!