Write as a MATLAB program
1 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151137/image.png)
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 中查找有关 Dynamic System Models 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!