作者steven1212 (吉祥物)
看板NUK_EE100A
標題[情報] MATLAB 程式碼 大家來複製吧
時間Wed May 5 09:52:39 2010
clear all
R1=1;R2=1;L1=1;L2=1;C=1;
t=0:0.02:30;
num1=[L2*C R2*C1];
num2=[1];
num3=[L2 R2];
den=[L1*L2*C R1*L2*C+R2*L1*C L1+L2+R1*R2*C R1+R2];
G1=tf(num1,den);
G2=tf(num2,den);
G3=tf(num3,den);
y1=step(G1,t);
y2=step(G2,t);
y3=step(G3,t);
plot(t,y1,'r');
hold on
plot(t,y2,'g');
hold on
xlabel('Time')
ylabel('Gain')
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.127.200.1
1F:推 y955618:葛葛 不能跑 第一行字就打錯了 啾咪 05/05 09:58
※ 編輯: steven1212 來自: 118.171.66.218 (05/09 20:10)