Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Can someone help me with my code ? I can not see error.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
function dy = vdp1000(t,y)
dy = zeros(2,1);
dy(1) = y(2);
dy(2) = 1000*(1 - y(1)^2)*y(2) - y(1);
[T,Y] = ode15s(@vdp1000,[0 3000],[2 0]);
plot(T,Y(:,1),'-o')
Respuestas (1)
Peng Liu
el 2 de Nov. de 2014
There is nothing wrong with your code. You just need to save the function vdp1000 as an independent m file with name vdp1000.m and add it to the MATLAB current folder. Then you should be able to run: [T,Y] = ode15s(@vdp1000,[0 3000],[2 0]); plot(T,Y(:,1),'-o')
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!