%% Create Data Cube from Numeric Inputs
% Read an RGB image into the workspace. An RGB image contains three spectral channels: red, green, and blue channels.

image = imread('peppers.png');

% Specify the center wavelength values for the red, green, and blue channels as 700, 530, and 470 nanometers (nm) respectively.

wavelength = [700 530 470];

% Create a hypercube object using the image and the wavelength values.

hcube = hypercube(image,wavelength)

% Copyright 2020 The MathWorks, Inc.