Hello Everyone,
I want at each iteration, to clear the matrix corresponding to this iteration from a multidimensional Matrix.
So here is my code.
A(:, :, 1, 1) = rand(5, 5);A(:, :, 1, 2) = rand(5, 5);A(:, :, 1, 3) = rand(5, 5);whosfor i = 1:3 A(:, :, 1, i) = []; whosend
I don't understand why this doesn't work, normally A(:, :, 1, i) is a matrix so the command is correct, but it is telling me that a null assignement can have only one non-colon index.
Can anyone help me please to solve this problem ?
Thans in advance
Best Answer