Skip to content

Instantly share code, notes, and snippets.

@adamjgnoel
Last active April 28, 2016 05:39
Embed
What would you like to do?
% 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