How can I add curves to the Bode plot?
2 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368554/image.png)
I am trying to make a comparison between my experimental resutl and theoretical result, how can I move that blue curve to the magnitude plot? Below are the code that I used:
s =tf('s');
R = 11.17*10^3;
C = 0.066*10^-6;
B = 1/(1+s*R*C);
lf = [73.79,368.95,737.9,1475.8,2213.7,2951.6,5903.2];
bode(B,lf);
grid;
hold on
mr = [-0.219907686,-0.406756628,-1.061134586,-3.0980392,-5.31200515,-6.792178032,-11.95477235];
pd = [-2.58876,-13.3245,-25.2108,-43.3152,-54.3132,-61.9272,-74.448];
plot(lf,mr);
hold on
plot(lf,pd);
0 件のコメント
回答 (1 件)
Walter Roberson
2020 年 9 月 29 日
Use bodeplot() instead of bode() . bode() calls bodeplot() but does not return the handles that you need to get to the axes objects.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Plot Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!