MATLAB: How to use image input with Neural Network

Deep Learning Toolboximage processingneural network

I'm new for neural network. I don't know how to train and test neural network with image processing. when I read image into matlab it will be matrix and I covert to gray and 2*2double matrix. If I have many image matrix to train. Should I have to concatenate every image matrix to one image matrix that will be same row but many column or Should I have to covert image matrix to one column per one image first and concatenate every column to one image matrix ?. How I have to do and what function to do that?

Best Answer

If you have N images of size I =row*column, each image is columnized to form a column in the input matrix with size
[I N ] =size(iput)
Hope this helps.
Greg