필터 지우기
필터 지우기

How to overlay my data point plot on Bode plot?

조회 수: 10 (최근 30일)
Gongwei Chen
Gongwei Chen 2019년 11월 10일
답변: Star Strider 2019년 11월 10일
I did a hand-drawn approximation of the bode plot of a transfer function. Now, I am using MATLAB to plot the bode plot for me and then overlay my hand drawn plot on top of it. Is there a way to do that?
Z=[-10];
P=[-1,-100];
K=1000
G=zpk(Z,P,K);
x=[0.1, 1, 10, 100, 1000];
y=[0, -45, -45, -45, -90];
h=plot(x,y);
bode(G,h)
The code is giving me an error:
demo.png

답변 (1개)

Star Strider
Star Strider 2019년 11월 10일
Probably the easiest way is to have bode return the data it calculates as outputs using the techniques in Obtain Magnitude and Phase Data and then create your own subplot figure for magnitude and phase to plot your data and the bode data.

카테고리

Help CenterFile Exchange에서 Plot Customization에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by