MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB信号处理] 程序求助 (https://www.labfans.com/bbs/showthread.php?t=15276)

langyun 2012-05-20 20:10

程序求助
 
K=[1;7;9];
numc=1;
denc=conv([1 0],[0.67 1]);
T=0.1;
t=0:T:100;
for i=1:length(K)
[numd,dend]=c2dm(numc,denc,T,'zoh');
[num1,den1]=cloop(numd*K(i),dend,-1);
[yd,xd,td]=dstep(num1,den1,t);
subplot(1,2,1),plot(td,yd);title('离散系统');axis([0 100 -10 10]);hold on
[num,den]=cloop(numc*K(i),denc,-1);
[y,x,t1]= step(num,den,t);
subplot(1,2,2),plot(t1,y);title('连续系统');axis([0 20 0 1.7]);hold on
end
这是我写的一段程序,可是那个离散系统的就是出不来,请大家帮个忙,麻烦诸位了

langyun 2012-05-21 12:24

回复: 程序求助
 
有没有人哇,帮帮忙撒


所有时间均为北京时间。现在的时间是 05:15

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.