필터 지우기
필터 지우기

How can I enter L and Ommega in the matlab program?

조회 수: 1 (최근 30일)
shegaw mamo
shegaw mamo 2019년 8월 21일
L=15;% length of time
ommega=10;% period
lambda = 388;
rho = 0.009;
beta=3.61e-8;
delta=0.18;
p=50000;
c=23;
f = @(t,x) [lambda-rho*x(1)-beta*x(1)*x(3); beta*x(1)*x(3) - delta*x(2); p*x(2) - c*x(3)];
tspan = [0,1];
options = odeset('RelTol',1e-1,'AbsTol',[1e-4 1e-4 1e-4]);
[t,xa] = ode45(f,tspan,[43100 0 0.0033],options);
plot(t,xa(:,1),'-'); figure
plot(t,xa(:,2),'-.');figure
plot(t,xa(:,3),'.');

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by