视频链接:
首先建立如下Simulink模型:
视频中的脚本如下:
mdlName = 'zeroes_2ndorder';
figure('name','二阶系统增加零点后的影响','units','normalized','outerposition',[0 0 1 1]);
grid on;
legend_index=1;
hold on;
for a = [3,5,10,-3]
disp(['Running Test Cycle with a =',num2str(a)]);
load_system(mdlName);
cs = getActiveConfigSet(mdlName);
model_cs = cs.copy;
set_param(model_cs,'MaxStep','0.01');
simOut = sim(mdlName,model_cs);
hplot(legend_index)=plot(simOut.logsout{1}.Values);
hold on;
legendInfo{legend_index}=(['a=',num2str(a)]); % or whatever is appropriate
legend(hplot(1:legend_index), legendInfo(1:legend_index));
drawnow();
legend_index=legend_index+1;
end
hplot(legend_index)=plot(simOut.logsout{2}.Values);
hold on;
legendInfo{legend_index}=('no zero 2nd order system'); % or whatever is appropriate
legend(hplot(1:legend_index), legendInfo(1:legend_index));
drawnow();
title('Effect of adding a zero to a two-pole system');
xlabel('Time(seconds)','FontAngle','italic');
ylabel('Normalized c(t)','FontAngle','italic');
武汉格发信息技术有限公司,格发许可优化管理系统可以帮你评估贵公司软件许可的真实需求,再低成本合规性管理软件许可,帮助贵司提高软件投资回报率,为软件采购、使用提供科学决策依据。支持的软件有: CAD,CAE,PDM,PLM,Catia,Ugnx, AutoCAD, Pro/E, Solidworks ,Hyperworks, Protel,CAXA,OpenWorks LandMark,MATLAB,Enovia,Winchill,TeamCenter,MathCAD,Ansys, Abaqus,ls-dyna, Fluent, MSC,Bentley,License,UG,ug,catia,Dassault Systèmes,AutoDesk,Altair,autocad,PTC,SolidWorks,Ansys,Siemens PLM Software,Paradigm,Mathworks,Borland,AVEVA,ESRI,hP,Solibri,Progman,Leica,Cadence,IBM,SIMULIA,Citrix,Sybase,Schlumberger,MSC Products...