% Written by: Daniel Llamocca (2013)
% Continuous-Time exponentials in MATLAB
clear all; close all; clc;

t = -10:0.1:10; % (-10 -9.9 -9.8 ..... 10) --> here we approximate a CT signal
% t is given in steps of '0.1' --> This is enough to get a fairly good
% approximation of the exponential function

B = 0.5;

% a > 0: growing exponential
  a = 1.5;
  x = B*exp(a*t);
  figure; plot (t,x,'b'); title ('a > 1');
  %figure; semilogy(t,x,'b'); title ('a > 1');

% a < 0: decaying exponential
  a = -0.5;
  x = B*exp(a*t);
  figure; plot (t,x,'r'); title ('a > 1');
  %figure; semilogy(t,x,'r'); title ('a > 1');
