Rabu, 20 November 2013

Penyelesaian PDB dengan Matlab (dsolve)

SOAL:
1.      y’’+8y’+15y=0
y(0) = 1
y’(0) = 0

>> dsolve('D2y+8*Dy+15*y=0','y(0)=1','Dy(0)=0')

ans =

-3/2*exp(-5*t)+5/2*exp(-3*t)


>> t=0:0.1:8
>> y=-3./2.*exp(-5.*t)+5./2.*exp(-3.*t);
>> plot(x,y)