Home > vbmeg > external > mne > mne_read_w_file1.m

mne_read_w_file1

PURPOSE ^

SYNOPSIS ^

function [w] = mne_read_w_file1(filename)

DESCRIPTION ^

 [w] = mne_read_w_file(filename)

 Reads a binary w file into the structure w with the following fields

 vertices - vector of vertex indices (1-based)
 data     - vector of data values

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [w] = mne_read_w_file1(filename)
0002 %
0003 % [w] = mne_read_w_file(filename)
0004 %
0005 % Reads a binary w file into the structure w with the following fields
0006 %
0007 % vertices - vector of vertex indices (1-based)
0008 % data     - vector of data values
0009 %
0010 
0011 %
0012 %   Author : Matti Hamalainen, MGH Martinos Center
0013 %   License : BSD 3-clause
0014 %
0015 
0016 me='MNE:mne_read_w_file1';
0017 if(nargin ~= 1)
0018     error(me,'usage: [w] = mne_read_w_file1(filename)');
0019 end
0020 
0021 try
0022     w = mne_read_w_file(filename);
0023     w.vertices = w.vertices + 1;
0024 catch
0025     error(me,'%s',mne_omit_first_line(lasterr));
0026 end
0027 
0028 return;

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