[res] = mne_transpose_named_matrix(mat) Transpose a named matrix
0001 function [res] = mne_transpose_named_matrix(mat) 0002 % 0003 % [res] = mne_transpose_named_matrix(mat) 0004 % 0005 % Transpose a named matrix 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:41 msh 0014 % Added MGH to the copyright 0015 % 0016 % Revision 1.1 2006/04/18 23:21:22 msh 0017 % Added mne_transform_source_space_to and mne_transpose_named_matrix 0018 % 0019 % 0020 0021 res.nrow = mat.ncol; 0022 res.ncol = mat.nrow; 0023 res.row_names = mat.col_names; 0024 res.col_names = mat.row_names; 0025 res.data = mat.data'; 0026 0027 return; 0028 0029 end 0030