Home > vbmeg > external > mne > fiff_invert_transform.m

fiff_invert_transform

PURPOSE ^

SYNOPSIS ^

function [itrans] = fiff_invert_transform(trans)

DESCRIPTION ^

 [itrans] = fiff_invert_transform(trans)

 Invert a coordinate transformation

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [itrans] = fiff_invert_transform(trans)
0002 %
0003 % [itrans] = fiff_invert_transform(trans)
0004 %
0005 % Invert a coordinate transformation
0006 %
0007 
0008 
0009 %
0010 %   Author : Matti Hamalainen, MGH Martinos Center
0011 %   License : BSD 3-clause
0012 %
0013 %   Revision 1.2  2006/04/23 15:29:40  msh
0014 %   Added MGH to the copyright
0015 %
0016 %   Revision 1.1  2006/04/14 00:45:42  msh
0017 %   Added channel picking and fiff_invert_transform
0018 %
0019 %
0020 
0021 me = 'MNE:fiff_invert_transform';
0022 
0023 if nargin ~= 1
0024     error(me, 'Incorrect number of arguments');
0025 end
0026 
0027 itrans        = trans;
0028 help          = itrans.from;
0029 itrans.from   = itrans.to;
0030 itrans.to     = help;
0031 itrans.trans  = inv(itrans.trans);
0032 
0033 return
0034 
0035

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005