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');