Вы находитесь на странице: 1из 1

clc;

clf;
clear;
% equation xdot=dx/dt=x0*exp(-kt);
%x0=1 and k=.1 to .5
hold on;
axis([0 10 0 1.2]);
t=0:0.01:10;
k=0.1:0.1:0.5;
x0=1;
xdot=x0*exp(-k(:)*t);
plot(t,xdot);
xlabel('t -->');
ylabel('e^-k*t -->');
title('exp decay curve model');
legend('k=0.1','k=0.2','k=0.3','k=0.4','k=0.5',0);

Вам также может понравиться