Manu Sutela added The_following_Matlab_script_was__.tex  about 8 years ago

Commit id: ecd6680a9637b8931da62c7279b3373ae87ccf20

deletions | additions      

         

The following Matlab script was used for visualization:  \begin{verbatim}  %% Part 1  load('P1_spontaneous_data.mat')  Pxx1 = zeros(122, 398);  Pxx2 = zeros(122, 398);  for i = 1:122  [Pxx1(i,:) f] = pwelch(data1(i,:),[],[],2*sff,sff);  [Pxx2(i,:) f] = pwelch(data2(i,:),[],[],2*sff,sff);  end  plotSpectra(f, Pxx1, Pxx2, 'coils', 'grad2', 'xlimits',[2 30],'Ylimits',[-5e-10 1e-9]);  \end{verbatim}