Use bodeplot() instead of bode() . bode() calls bodeplot() but does not return the handles that you need to get to the axes objects.
How can I add curves to the Bode plot?
5 次查看(过去 30 天)
显示 更早的评论
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 个)
另请参阅
类别
在 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!