MATLAB: How can i show the hyperspectral data in a two dimensional projection of hyperspectral cube

hyperspectral

i have a hyperspectral data in a .m file it is 984*740*224 how can i show it in a two dimensional projection of hyperspectral cube?

Best Answer

If your data is something like (x,y,spectra), you could try:
imagesc(your_data(:,:,1));
If your data is like (spectra, x, y) you could try:
imagesc(squeeze(your_data(10,:,:)));