Effacer les filtres
Effacer les filtres

Write as a MATLAB program

1 vue (au cours des 30 derniers jours)
Serbianu
Serbianu le 13 Juin 2015
Commenté : Serbianu le 13 Juin 2015
How can I write this system as a MATLAB program?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 13 Juin 2015
Modifié(e) : Azzi Abdelmalek le 13 Juin 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)
  1 commentaire
Serbianu
Serbianu le 13 Juin 2015
Thanks, also I want to know how ca I write kp/(t1s+1)(t2s+1) properly as a function, without using "tf". Can you help me?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dynamic System Models dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by