%  File:  noisyData.m
%
%  Generate a noisy function and plot it.

x = 0:0.01:2;                 %  generate the x-vector
noise = 0.02*randn(size(x));  %  and noise
y = 5*x.*exp(-3*x) + noise;   %  Add noise to known function
plot(x,y,'o');                %  and plot with symbols

xlabel('x (arbitrary units)');          %  add axis labels and plot title
ylabel('y (arbitrary units)');
title('Plot of y = 5*x*exp(-3*x) + noise');
