title: How can I modify a kernel size image data as an input for CNN in MATLAB?
body: <p>I'm trying to create a 1x1x198 input for my CNN from a 100x100x198 data(image).
  <br>
  I'm using Hyperspectral Imaging data (jasper), however, if I want to process and plot their endmembers through a Convolution Neural Network I have to modify the data in 1x1x198 kernel sizes.
  <br>I am trying to write the Matlab code for the following paper. I will appreciate any help regarding the paper's Matlab code. IEEE paper: <a href="https://ieeexplore.ieee.org/abstract/document/8432512/" rel="nofollow noreferrer">Hyperspectral unmixing via deep convolutional neural networks</a>
  <br> Thank you
  <a href="https://i.stack.imgur.com/4CPHx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4CPHx.jpg" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/48Z9l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/48Z9l.png" alt="enter image description here" /></a></p>