Skip to content

Instantly share code, notes, and snippets.

@adamjgnoel
Last active April 28, 2016 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamjgnoel/adc30e8613881205122b4e478c39c835 to your computer and use it in GitHub Desktop.
Save adamjgnoel/adc30e8613881205122b4e478c39c835 to your computer and use it in GitHub Desktop.
% Plotting take 1
x = 1e-2:1e-2:100;
% Smooth curves
y1 = exp(-x);
y2 = 1-exp(-x);
% Noisy curves
n = length(x);
z1 = y1.*(1+0.005*randn(1,n));
z2 = y2.*(1+0.005*randn(1,n));
plot(x,y1,x,y2,x,z1,x,z2);
xlabel('Time [s]');
ylabel('Exponential Observation');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment