How can I create a phase plane for Van der Pol equation using the following showed on the picture?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Mischa Kim
am 19 Okt. 2017
I cannot see the picture. Please share the code you have developed so far.
Antworten (3)
KSSV
am 20 Okt. 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 Kommentare
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!