Home > fmri > fsl > load_mat.m

load_mat

PURPOSE ^

SYNOPSIS ^

function [desmat] = load_mat(fname)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [desmat] = load_mat(fname)
0002 %
0003 
0004 unix_str = sprintf('grep -n Matrix %s', fname);
0005 [status,str] = unix(unix_str);
0006 
0007 nlines_skip = str2num(strtok(str,':'));
0008 
0009 %desmat = textread(fname,'headerlines',nlines_skip+7);
0010 desmat = loadtxt(fname,'skipline',nlines_skip,'convert','force','verbose','off');

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003