How to plot parameter phase plane?

조회 수: 9 (최근 30일)
Sama
Sama 2018년 7월 2일
댓글: Sama 2018년 7월 3일
Hi, I am having the following code for plotting the phase plane between two variables x and y, however, I would like to draw for parameters, say c and m
function my_phase()
IC = [0.1 0.1];
hold on
for ii = 1:length(IC(:,1))
%vectorfield(@EOM,0:.1:1.8,0:0.1:1);
[t,X] = ode45(@EOM,[0 100],IC(ii,:));
u = X(:,1);
w = X(:,2);
plot(u,w,'b', 'linewidth',3)
% plot(t,u, 'b', 'linewidth',3)
% plot(t,w, 'r', 'linewidth',3)
end
fsize=15;
xlabel('\itx','FontSize',fsize)
ylabel('\ity','FontSize',fsize)
grid
%quiver(X(:,1),X(:,2),u,w,'r')
end
function dX = EOM(~, x)
dX = zeros(2,1);
u = x(1);
w = x(2);
k = 3;m = 3;c=1;
dX = [u*(1-(u/k)-m*w/(1+u));...
w*(-c+m*u/(1+u))];
end
Any hint will be appreciated. Thank you very much, Sanaa Moussa
  댓글 수: 2
KSSV
KSSV 2018년 7월 3일
Phase plane is a plot of displacement vs velocity. How you want to involve c and m?
Sama
Sama 2018년 7월 3일
Sorry for misleading you, I want to plot the parameter plane not the phase plane, for instant between c and m.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by