"output image is 512*512 Matrices" <==== Howmany matrices? And how is the output determined? Is it based on anyinputs ? Why do you need more than one matrix to hold your features? Whatare your features?
Have you tried the Classification Learner app on the Apps tab of the tool ribbon?
Farjana - the error message is occurring because of the line of code
a=N(i,j,3);
which is trying to access the third dimension of the matrixN when it only has two dimensions (your input image is grayscale, 256x256, and not colour, 256x256x3). Either change the line of code to
Best Answer