古詩詞大全網 - 四字成語 - matlabimpulse

matlabimpulse

參考代碼:

%?用傳遞函數的形式創建二階系統?1/(s^2+s+1)

G=tf(1,[1?1?1]);

%?求階躍響應

subplot?221

step(G)

%?求脈沖響應

subplot?222

impulse(G)

%?求余弦輸入響應

subplot?223

t?=?0:0.1:10;

u?=?cos(t);

lsim(G,u,t);

%?求正弦輸入響應

subplot?224

t?=?0:0.1:10;

u?=?sin(t);

lsim(G,u,t);

都是很基礎的東西,直接調函數就行,似乎沒什麽好解釋的了,如果實在看不明白再問吧。