Npoints = 10000;
period = 0.001;


t = 0:period:period*Npoints-period;
n = 0.5*randn(1,length(t));

plot(t,n)

form = '%f\t%f\n';
f = fopen('PWLsrc_10k_1ms.txt','w');

for ii = 1:length(t)
   fprintf(f,form, t(ii), n(ii)); 
end

fclose(f);