# Answer to Question #7429 in MatLAB | Mathematica | MathCAD | Maple for Michelle

Question #7429

The initial conditions are y(t = 0) = 2 and dy(t = 0)/dt = 0. The file VdP with the resulting right hand side

has been coded up for the given equation. Solve the equation for t = [0 : 0.01 : 32] using ode45. Is this the right code to solve for y(t)?

y0 = [2; 0];

[t,y1]=ode45(@VdP,[0:0.01:32],y0);

A4 = y1(:,1);

has been coded up for the given equation. Solve the equation for t = [0 : 0.01 : 32] using ode45. Is this the right code to solve for y(t)?

y0 = [2; 0];

[t,y1]=ode45(@VdP,[0:0.01:32],y0);

A4 = y1(:,1);

Expert's answer

## Comments

## Leave a comment