first order equilibrium point

조회 수: 1 (최근 30일)
Jhon
Jhon 2018년 10월 25일
Hello,I have this differential equation : x'=x+53 and I need to plot its equilibrium point using ode for multiple initial conditions,the conditions are not specified.I know that equilibrium point occurs when x'=0.The code:
function xp = f(t,x)
xp=x + 53;
end
t,x] = ode23('f',[0,4],[-56])
plot(t,x,'r')
hold on
[t,x] = ode23('f',[0,4],[0.4])
plot(t,x,'g')
[t,x] = ode23('f',[0,4],[-66])
plot(t,x,'k')
[t,x] = ode23('f',[0,4],[-88])
plot(t,x,'b')
[t,x] = ode23('f',[0,4],[-77])
plot(t,x,'y')
[t,x] = ode23('f',[0,4],[58])
plot(t,x,'r')
[t,x] = ode23('f',[0,4],[34])
plot(t,x,'b')
[t,x] = ode23('f',[0,4],[17])
plot(t,x,'g')
I got that plot.Am I doing this right?So far I think the plot shows that in 0 there is a stable equilibrium point.What to do if I want to show the stability in 33?

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by