MATLAB: Input and target have different number of sampel

error different input and target

Hi, I have some code her and following some example how to create neural network using toolbox. I have matrix with dimension like below
load datatrain1.mat
input = cell2mat(Train); %220x25 dimension
load classtrain1.mat
target = cell2mat(TTrain); %220x1 dimension
net = newff(input,target,[100 11],{'logsig','logsig'},'trainlm');
net.trainParam.epochs = 1000;
net.trainParam.goal = 1e-6;
net = train(net,input,target);
output = round(sim(net,input));
But when I run this code I get Error. In this code
net = train(net,input,target);
The error like this Inputs and targets have different numbers of samples.
How I fix it? is there any way for fix it?
Any help will be must appreciated. Thanks

Best Answer

Train and TTrain have to be transposed.
Hope this helps.
THANK YOU FOR FORMALLY ACCEPTING MY ANSWER
Greg