有人可以告诉我最后一个剧情指令如何在后续剧本中起作用?Plot in child(Matlab)
close all;
s=tf('s');
sys1 = 5/(s+5);
sys2=exp(-1*s);
G=ss(sys1)*ss(sys2);
opts = bodeoptions('cstprefs');
opts.Grid= 'ON';
% create a figure and get the handle of the figure
figHnd = figure;
bode(G,opts)
% get and display the children handles of the figure
childrenHnd =get(figHnd, 'Children');
% select magnitude plot and plot a line
axes(childrenHnd(3));
hold on;
plot([1 1], [-20 20], 'r')
hold off;
我试图为截止频率的水平线添加到我的波特图(幅度图),但我无法弄清楚如何做到这一点。当前的代码为我添加了一条垂直线。
更深入的比其他的答案。+1。 – rayryeng 2015-04-06 14:54:43