saves in MRIcro format $Id$
0001 function save_mricro(o, fname, sp) 0002 % saves in MRIcro format 0003 % 0004 % $Id$ 0005 0006 if nargin < 2 0007 error('Need filename for MRIcro save'); 0008 end 0009 if nargin < 3 0010 sp = native_space(o); 0011 end 0012 rlem = rle(o, sp); 0013 fid = fopen(fname, 'wb'); 0014 if fid == -1 0015 error(['Could not open file ' fname]); 0016 end 0017 fclose(fid); 0018 error('Come to think of it, I don''t understand the format anyhow');