Antti Mäkinen edited untitled.tex  about 8 years ago

Commit id: b17b4bfcb0f43e619901e12e7bfe09d5a60221b9

deletions | additions      

       

We wanted to visualize the source estimates as a function of time. We achieved this with the following script:  \begin{verbatim}  %% Plots  close all  vis_surface_data(srcb1(:,115), 0.1, max(srcb1(:)), anat_decim)  figure(1)  figure(2) %%  close all  figure(3)  hold on  plot(timeaxis,data1)  pause vv = var(data1,[], 2);  plot(timeaxis,data1(vv > 0.3*max(vv),:))  plot([1,1]*timeaxis(115),ylim(gca()), 'k--')  plot([1,1]*timeaxis(140),ylim(gca()), 'k--')  plot([1,1]*timeaxis(190),ylim(gca()), 'k--')  xlabel('time [s]')  axis tight  %%  close all  figure(4)  maxim hold on  vv  = max(srcw1(:));  for i= 100:363  vis_surface_data(srcw1(:,i),0.2,maxim,anat_decim)  figure(3)  plot(i*0.6/363-0.100,-1.5e-11,'*r')  pause(0.001)  disp(i*0.6/363-0.100)  end var(data2,[], 2);  plot(timeaxis,data2(vv > 0.3*max(vv),:))  plot([1,1]*timeaxis(125),ylim(gca()), 'k--')  plot([1,1]*timeaxis(190),ylim(gca()), 'k--')  xlabel('time [s]')  axis tight  \end{verbatim}