fcpid.m

来自「自己编的一些关于matlab 模糊整定的例子」· M 代码 · 共 22 行

M
22
字号
%FC与PID的控制效果比较 FCPID_jp.mdl FC为增量式
clear
clc
clf

jpfc_mat=readfis('jpfc');
jpfc22_mat=readfis('jpfc22');

sim('FCPID_jp');

subplot(2,1,1)
plot(tout,y1,'k',tout,y1_fc,'r')
legend('PID','FC',0);
axis([0 1000 0 1.5])
title('G=1/(1+20s)^2')

subplot(2,1,2)
plot(tout,y2,'k',tout,y2_fc,'r')
legend('PID','FC',0);
axis([0 1000 0 1.5])
title('G=exp(-120s)/(1+20s)^2)')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?