|
I am running two simulations.
Simulation 1:
This generates an array Aux1, with dimensions (colK,colK,neui).
and then i proceed with the following:
for i=1:neui;
[ValT(i,:), IndT(i,:)]=max(Aux1(:,:,i)');
end
Of this procedure, I need the IndT(i,:). This is a (neui,colK) matrix as it should be.
Now I try to get the same result for simulation 2, but it fails.
Simulation 2:
This generates an array Aux2, with dimensions (colS, colK, colK, neui). So i proceed with the following:
for is=1:colS;
Auxt=squeeze(Aux2(is,:,:,:));
for i=1:neui;
[ValT(i,:), IndT(i,:)]=max(Auxt(:,:,i)');
end
end
So I reduce the Aux2 matrix to Auxt which has the same dimensions as Aux1. It seems to me that if the matrices Auxt and Aux1 are of the same dimensions, it should yield the same results.
Somehow this does not happen and Matlab returns the error:
"??? Error using ==> ctranspose
Too many output arguments.
Error in ==> Alt1V3 at 227
[ValT(i,:), IndT(i,:)]=max(Auxt(:,:,i)')';"
I really dont get this. Can somebody explain this to me? Many thanks in advance!!!
|