필터 지우기
필터 지우기

I am stuck in a question

조회 수: 1 (최근 30일)
Arslan Ahmad
Arslan Ahmad 2017년 4월 19일
편집: David Goodmanson 2017년 4월 20일
my code is
syms y(t);
ode = diff(y,t) == (1-y)*exp(-0.1*y)
ysol(t) = dsolve(ode)
cond = y(0) == .5;
ysol(t) = dsolve(ode,cond)
t=[0:5]
plot(t,cell2mat(double(ysol(t))))
how would i determine the stationary solution in matlab when t approaches to infinity

답변 (1개)

David Goodmanson
David Goodmanson 2017년 4월 20일
편집: David Goodmanson 2017년 4월 20일
Hello Arslan, (I checked this by ode45 but the principle should be the same). You are solving dy/dt = (1-y)*exp(-.1*y). For a stationary solution, dy/dt = 0. So either exp(-.1*y) = 0 or (1-y) = 0. The first case corresponds to y = inf which is probably not what you are looking for, and the second case should be the solution.

카테고리

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