<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Myriad Pro";
        panose-1:2 11 5 3 3 4 3 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Dear Fieldtrip users, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I would like to add / regress out headmovement in my MEG data. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I found the nice wiki tutorial from fieldtrip: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><a href="http://www.fieldtriptoolbox.org/example/how_to_incorporate_head_movements_in_meg_analysis">http://www.fieldtriptoolbox.org/example/how_to_incorporate_head_movements_in_meg_analysis</a> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>However, when running the code I get the following error message: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Undefined function 'circumcenter' for input arguments of type 'double'.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I checked my paths and circumcenter is in it. Though if I open it, I see the following code. <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%circumcenter  Circumcenter of triangle or tetrahedron</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>% CC = circumcenter(TR, TI) returns the coordinates of the circumcenter</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     of each triangle or tetrahedron in TI.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     TI is a column vector of triangle or tetrahedron IDs corresponding to</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     the row numbers of the triangulation connectivity matrix TR.ConnectivityList.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     CC is an m-by-n matrix, where m is of length(TI), the number of specified</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     triangles/tetrahedra, and n is the spatial dimension 2 <= n <= 3.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     Each row CC(i,:) represents the coordinates of the circumcenter</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     of TI(i). If TI is not specified the circumcenter information for</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     the entire triangulation is returned, where the circumcenter associated</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     with triangle/tetrahedron i is the i'th row of CC.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     [CC RCC] = circumcenter(TR, TI) returns in addition, the corresponding</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     radius of the circumscribed circle/sphere. RCC is a vector of length</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%     length(TI), the number of specified triangles/tetrahedra.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%   Example 1: Load a 2D triangulation and use the triangulation to compute the</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%              circumcenters.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       load trimesh2d</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       % This loads triangulation tri and vertex coordinates  x, y</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       trep = triangulation(tri, x,y)</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       cc = circumcenter(trep);</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       triplot(trep);</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       axis([-50 350 -50 350]);</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       axis equal;</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       hold on; plot(cc(:,1),cc(:,2),'*r'); hold off;</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       % The circumcenters represent points on the medial axis of the polygon.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%   Example 2: Direct query of a 3D triangulation created using delaunayTriangulation</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%              Compute the circumcenters of the first five tetrahedra.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       X = rand(10,3);</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       dt = delaunayTriangulation(X);</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%       [cc rcc] = circumcenter(dt, [1:5]')</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%   See also triangulation, triangulation.incenter, delaunayTriangulation.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'> </span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%   Copyright 2008-2012 The MathWorks, Inc.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New";color:forestgreen'>%   Built-in function.</span><span lang=EN-US style='font-size:12.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>It seems to me that the real function is missing. Is this normal? Could this be the problem? <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I googled circumcenter and found the function, though I am not sure whether this is doing what it should do. Besides it also doesn’t run when including the 3 coil variables (error messages: Error using circumcenter2 Too many input arguments.)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Help is really appreciated </span><span lang=EN-US style='font-family:Wingdings'>J</span><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Best <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Dr. C. Quaedflieg, Hamburg University <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The code that I Found for circumcenter<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>function [ pc, r ] = circumcenter ( p, t )<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%*****************************************************************************80<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%% CIRCUMCENTER computes the circumcenters of a set of triangles.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%  Discussion:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    The circumcenter of a triangle is the circle which passes through<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    all three vertices of the triangle.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%  Licensing:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    (C) 2004 Per-Olof Persson. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    See COPYRIGHT.TXT for details.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%  Reference:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    Per-Olof Persson and Gilbert Strang,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    A Simple Mesh Generator in MATLAB,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    SIAM Review,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    Volume 46, Number 2, June 2004, pages 329-345.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%  Modified:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    11 June 2004<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%  Parameters:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    Input, real P(NP,2), the coordinates of a set of nodes.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    Input, integer T(NT,1:3), a list of the nodes which make up each triangle<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    of a triangulation of the nodes in P.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    Output, real PC(NT,2), the centers of the circumcircles.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%    Output, real R(NT,1), the radii of the circumcircles.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>%<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  nt = size ( t, 1 );<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  pc = zeros ( nt, 2 );<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>r  = zeros ( nt, 1 );<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  for it = 1 : nt<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    ct = t(it,:);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    dp1 = p(ct(2),:) - p(ct(1),:);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    dp2 = p(ct(3),:) - p(ct(1),:);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    mid1 = ( p(ct(2),:) + p(ct(1),:) ) / 2;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    mid2 = ( p(ct(3),:) + p(ct(1),:) ) / 2;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    s = [ -dp1(2), dp2(2); dp1(1), -dp2(1) ] \ [ -mid1 + mid2 ]';<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    </span><span lang=NL style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>cpc = mid1 + s(1) * [ -dp1(2), dp1(1) ];<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    cr = norm ( p(ct(1),:) - cpc );<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  <o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>pc(it,:) = cpc;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    r(it,1) = cr;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>    <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>end<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>  return <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:DE'>end<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Myriad Pro",sans-serif;color:gray;mso-fareast-language:DE'>Mit freundlichen Grüßen,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Myriad Pro",sans-serif;color:gray;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:1.0pt;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='mso-fareast-language:DE'><img border=0 width=280 height=71 id="Bild_x0020_1" src="cid:image003.jpg@01D2EA76.8AF8FE20" alt=Unbenannt-1></span><b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'><o:p></o:p></span></b></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>E-Mail</span></b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>: </span><span style='mso-fareast-language:DE'><a href="mailto:cornelia.quaedflieg@uni-hamburg.de"><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F'>cornelia.quaedflieg@uni-hamburg.de</span></a></span><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'> <o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>Tel.</span></b><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>: </span><span style='mso-fareast-language:DE'><a href="tel:+49%2040%2042838-5448"><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F'>+49 40 42838-5448</span></a></span><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'>   <b>Website</b>: </span><span style='mso-fareast-language:DE'><a href="https://www.psy.uni-hamburg.de/arbeitsbereiche/kognitionspsychologie/personen/quaedflieg-conny.html"><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#66B0FB'>Hyperlink</span></a></span><span style='font-size:10.5pt;line-height:115%;font-family:"Myriad Pro",sans-serif;color:#7F7F7F;mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>