You are on page 1of 1

clc;

clf;
clear;
% equation xdot=dx/dt=x0*exp(kt);
%x0=1 and k=.1 to .5
%take t from 0 to 10 range in step of 0.01
hold on;
axis([0 10 0 10]);
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 curve model');
legend('k=0.1','k=0.2','k=0.3','k=0.4','k=0.5',0);

You might also like