How can I create a phase plane for Van der Pol equation using the following showed on the picture?

9 views (last 30 days)
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.

Answers (3)

KSSV
KSSV on 20 Oct 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

andargie
andargie on 15 Dec 2023
analysis

andargie
andargie on 15 Dec 2023
anaysis

Community Treasure Hunt

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

Start Hunting!