How can I create a phase plane for Van der Pol equation using the following showed on the picture?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I can not figure out how to create a phase plan for the Van der Pol equation using different values of k as shown on the picture.
1 comentario
Mischa Kim
el 19 de Oct. de 2017
I cannot see the picture. Please share the code you have developed so far.
Respuestas (3)
KSSV
el 20 de Oct. de 2017
Note that phase plot is nothing but plot of displacement vs velocity.
function VanderPol()
[t,y] = ode23(@vdp1,[0 20],[2; 0]);
plot(t,y(:,1),'-o',t,y(:,2),'-o')
title('Solution of van der Pol Equation (\mu = 1) with ODE23');
xlabel('Time t');
ylabel('Solution y');
legend('y_1','y_2')
figure
plot(y(:,1),y(:,2))
title('Phase plane plot')
end
function dydt = vdp1(t,y)
%VDP1 Evaluate the van der Pol ODEs for mu = 1
%
% See also ODE113, ODE23, ODE45.
% Jacek Kierzenka and Lawrence F. Shampine
% Copyright 1984-2014 The MathWorks, Inc.
dydt = [y(2); (1-y(1)^2)*y(2)-y(1)];
end
0 comentarios
Ver también
Categorías
Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!