Thank you for the nice function.
One minor bug: the 'machine' argument is missing for interleave modes 'bsq' and 'bil' - one needs to change
in order to be able to handle big-endian ordered data for these modes.
Thanks for the nice code. But it doesn't work in Matlab R2012a. The 'fileparts' function has been modified in matlab as
[pathstr, name, ext] = fileparts(file);
could you please modify the following line in the code:
[pathstr, name, ext, versn] = fileparts(file);