The MATLAB hyperspectral toolbox add-on to the Image Processing Toolbox seems pretty new and correspondingly buggy.
1) It appears incapable of reading in an image with an ENVI image with header, for example the command
>> hcube_mat = hypercube('AVIRIS_NG_refCube.img','AVIRIS_NG_refCube.hdr');
generates the following errors
Error using enviinfo (line 53)
File type number: char not supported.
Error in hypercube>getMetaforImg (line 1227)
header = enviinfo(imgFile);
Error in hypercube (line 304)
obj.Metadata = getMetaforImg(hdrfile, 'envi');
2) The Spectral Library capability seems a mess. I see no way of reading in a new spectral library other than the default ECOSTRESS library. Am I missing something here with regards to reading in my own ENVI spectral library?