Need help with difference equation (continuous-time system)

13 Ansichten (letzte 30 Tage)
Alex
Alex am 2 Nov. 2012
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 Kommentare
Azzi Abdelmalek
Azzi Abdelmalek am 2 Nov. 2012
Do you need a numeric solution or symbolic?
Titus Edelhofer
Titus Edelhofer am 2 Nov. 2012
Bearbeitet: Titus Edelhofer am 2 Nov. 2012
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 ...

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Rajiv Singh
Rajiv Singh am 2 Nov. 2012
[y,t] = step(tf(1,[1 5 6]))

Weitere Antworten (1)

Titus Edelhofer
Titus Edelhofer am 2 Nov. 2012
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

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by