I have solved the matrix by hand and I found the general solution. If I wanted to plot the phase plane on Matlab, how would I go about doing that?
Here is an example of the general solution for the phase plane I want to plot:
x(t)=c1e^-3t+c2e^-t
y(t)=-c1e^-3t
Both c1 and c2 are constants

답변 (1개)

Matt J
Matt J 2021년 9월 12일
편집: Matt J 2021년 9월 12일

0 개 추천

For example,
funx=@(t) c1*exp(-3*t)+c2*exp(-t);
funy=@(t) -c1*exp(-3*t);
fplot(funx,funy,[0,1])
or
t=linspace(0,1,100);
x= c1*exp(-3*t)+c2*exp(-t);
y= -c1*exp(-3*t);
plot(x,y,'x')

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2018년 12월 6일

편집:

2021년 9월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by