Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
example:planar_orientation [2018/10/21 15:07]
42.49.180.224 1
example:planar_orientation [2017/08/17 11:21] (current)
127.0.0.1 external edit
Line 1: Line 1:
-{{tag>elekta planar}}+{{tag>elekta planar}}
  
 ===== Find the orientation of planar gradiometers ===== ===== Find the orientation of planar gradiometers =====
Line 10: Line 10:
  
   ​   ​
-&lt;code&gt;+<code>
 grad = ft_read_sens(filename,​ '​senstype',​ '​meg'​);​ grad = ft_read_sens(filename,​ '​senstype',​ '​meg'​);​
  
Line 18: Line 18:
   j = sel(i);   j = sel(i);
   clear coilindex*   clear coilindex*
-  coilindex1 = find(grad.tra(j,:​)&gt;0) +  coilindex1 = find(grad.tra(j,:​)>0) 
-  coilindex2 = find(grad.tra(j,:​)&lt;0)+  coilindex2 = find(grad.tra(j,:​)<0)
   pos(i,:) = (grad.coilpos(coilindex2,:​) + grad.coilpos(coilindex1,:​))/​2;​   pos(i,:) = (grad.coilpos(coilindex2,:​) + grad.coilpos(coilindex1,:​))/​2;​
   ori(i,:) = grad.coilpos(coilindex2,:​) - grad.coilpos(coilindex1,:​);​   ori(i,:) = grad.coilpos(coilindex2,:​) - grad.coilpos(coilindex1,:​);​
Line 30: Line 30:
 axis equal axis equal
 axis vis3d axis vis3d
-&lt;/code&gt;+</code>
  
 {{:​example:​planar_orientation.png|}} {{:​example:​planar_orientation.png|}}