How do i find a difference equation?

12 Ansichten (letzte 30 Tage)
LeBron
LeBron am 24 Jan. 2013
I have this first order differential equation given:
i need to find a difference equation using MATLAB. I would appreciate if someone could help me with that. Thanks
  2 Kommentare
Wayne King
Wayne King am 24 Jan. 2013
what is u(t) here? is that the step function?
LeBron
LeBron am 24 Jan. 2013
its the input

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 24 Jan. 2013
Choose your sample time Te
Te=0.1 % Your sample time
N=1.5
D=[1 -0.5]
Modelc=tf(N,D) % Your continue transfer function
Modeld=c2d(Modelc,Te) % Your discrete transfer function
[Nd,Dd]=tfdata(Modeld,'v');
% From Y(z)/U(z)=Nd(z)/Dd(z) you can find the relation between y{n] and u[n]
  10 Kommentare
Roger Stafford
Roger Stafford am 25 Jan. 2013
Azzi, the Runga-Kutta method does give a set of difference equations, in fact a very respectable set indeed.
LeBron
LeBron am 25 Jan. 2013
Bearbeitet: LeBron am 25 Jan. 2013
Hey Azzi thank you so much for all your help. I really appreciate it. People like you make this forum a great place.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by