Main Content

Hyperspectral Viewer

Visualize hyperspectral data

Since R2020a


The Hyperspectral Viewer app visualizes hyperspectral data and enables you to create spectral profiles of points and regions in the data.


This app requires the Image Processing Toolbox™ Hyperspectral Imaging Library. You can install the Image Processing Toolbox Hyperspectral Imaging Library from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.

The Image Processing Toolbox Hyperspectral Imaging Library requires desktop MATLAB®, as MATLAB Online™ or MATLAB Mobile™ do not support the library.

Hyperspectral Viewer app

Open the Hyperspectral Viewer App

  • MATLAB Toolstrip: On the Apps tab, under Image Processing and Computer Vision, click the Hyperspectral Viewer app icon.

  • MATLAB command prompt: Enter hyperspectralViewer. For more information, see Programmatic Use.


expand all

Construct a hypercube object with the Indian Pines hyperspectral data set.

hcube = hypercube('indian_pines.dat');

Open the Hyperspectral Viewer app with the Indian Pines data.


Related Examples

Programmatic Use

expand all

hyperspectralViewer opens the Hyperspectral Viewer app.

hyperspectralViewer(hcube) opens the Hyperspectral Viewer app, loading the hypercube object hcube into the app.

hyperspectralViewer(cube) opens the Hyperspectral Viewer app, loading the 3-D array cube. When not loading a hypercube object, the capabilities of the app are limited.

hyperspectralViewer close closes all open Hyperspectral Viewer apps.

Version History

Introduced in R2020a

expand all

See Also