Write as a MATLAB program
2 ビュー (過去 30 日間)
古いコメントを表示
How can I write this system as a MATLAB program?
0 件のコメント
採用された回答
Azzi Abdelmalek
2015 年 6 月 13 日
編集済み: Azzi Abdelmalek
2015 年 6 月 13 日
%------------your parameters-----
kp=10
t1=1
t2=1
a=1
w=1
%---your transfer fuction-----------
N=kp
D=[t1*t2 t1+t2 1]
H=tf(N,D)
%------your input signal u(t)---------
t=0:0.1:10
u=a*sin(w*t)
%-----compute the output signal y(t)
y=lsim(H,u,t)
plot(t,y)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Install Products についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!