I am exploring MATLAB's Neural Network Toolbox (NNtool), and I am running into a problem of having incompatible dimensions of target matrix. The exact error message is:
com.mathworks.jmi.MatlabException: Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Let me explain in detail. I have an image which has some elliptical image in it, and I want to estimate the eliiptical parameters using a neural network, for that purpose, I have training data with all the target values. So, I am giving image as an input (I first read the image, convert it into mat2gray() format, and then import it in NNtool), and then I set the target matrix (my target matrix contains two values, since my neural network will be outputing two values, I have tried formatting the output in both ways, [0.5 0.9] and also [0.5; 0.9], but still I am getting the same error.
I have also tried by keeping the number of columns the same for the input and target matrix. I made my input matrix as [2304,1] (I have a 48*48 image, that is equal to 2304) and my target matrix is [2,1] dimensions, but again, the same error occurs. While searching, I read that this is some sort of insufficient memory error. I am not sure if that is correct or not. Is that the case?
For this neural network, I have to train 40,000 images. Each image is 48*48 dimensions. How can I input these many images into NNtool?