How do i find a difference equation?

조회 수: 10 (최근 30일)
LeBron
LeBron 2013년 1월 24일
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
Wayne King
Wayne King 2013년 1월 24일
what is u(t) here? is that the step function?
LeBron
LeBron 2013년 1월 24일
its the input

댓글을 달려면 로그인하십시오.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 24일
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
Roger Stafford
Roger Stafford 2013년 1월 25일
Azzi, the Runga-Kutta method does give a set of difference equations, in fact a very respectable set indeed.
LeBron
LeBron 2013년 1월 25일
편집: LeBron 2013년 1월 25일
Hey Azzi thank you so much for all your help. I really appreciate it. People like you make this forum a great place.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by