Need help with difference equation (continuous-time system)

Hello, How to solve the equation in Matlab?
y''(t)+5*y'(t)+6y(t)= u(t)
y'(0)=y(0)=0
u(t) = 1(t) or u(t)= t*1(t)
I found the solution by hand through the transformation of Laplace, it came like this:
y(t)= 1/6 - exp(-2*t)/2 + exp (-3*t) for u(t)=1(t)

댓글 수: 2

Do you need a numeric solution or symbolic?
Titus Edelhofer
Titus Edelhofer 2012년 11월 2일
편집: Titus Edelhofer 2012년 11월 2일
Since he found the solution by hand, I guess the numerical solution is searched for ...? BTW you want to solver a differential equation, not a difference equation ...

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

 채택된 답변

Rajiv Singh
Rajiv Singh 2012년 11월 2일

1 개 추천

[y,t] = step(tf(1,[1 5 6]))

추가 답변 (1개)

Titus Edelhofer
Titus Edelhofer 2012년 11월 2일

0 개 추천

Hi,
you will need to convert your second order problem to a system of first order equations (by setting y1=y, y2=y'). Then use ode45 to solve the system.
Titus

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2012년 11월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by