Home > marsbar > @maroi > save_mricro.m

save_mricro

PURPOSE ^

saves in MRIcro format

SYNOPSIS ^

function save_mricro(o, fname, sp)

DESCRIPTION ^

 saves in MRIcro format

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019