Plotting Phase Plane in Matlab

조회 수: 90 (최근 30일)
Ziv Melamed
Ziv Melamed 2018년 12월 6일
편집: Matt J 2021년 9월 12일
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일
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')

카테고리

Help CenterFile Exchange에서 Vibration Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by