MATLAB: How to train labels for image blocks using neural network

Deep Learning Toolboxlabelingneural network

my input is a matrix each row filled with image block values and another matrix (column vector)having labels for each block. I have to train each block with the label using neural network.
how to implement this? I am new to neural network, please any one help me.

Best Answer

Form 2 matrices
input columns are columnized matrices (which may be the result of using feature extraction on the original matrices)
target matrices contain the label columns.
help fitnet
However, if this is a classification/pattern-recognition problem, the target columns should be columns of the unit matrix.
help patternnet
Hope this helps.
Thank you for formally accepting my answer
Greg