Write as a MATLAB program
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Serbianu
el 13 de Jun. de 2015
Comentada: Serbianu
el 13 de Jun. de 2015

How can I write this system as a MATLAB program?
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 13 de Jun. de 2015
Editada: Azzi Abdelmalek
el 13 de Jun. de 2015
%------------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)
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!