This is how I would do it:
M = bsxfun(@plus, randn(500, 40)*0.1, exp(-0.1*[0:39])); % Create Data Matrix: (500x40)
figure(1)
plot([1:40], M, '.k')
I created a data matrix that may not match your actual data.
Run this code to see how the plot looks.
