Tuesday, 1 October 2013

Matlab remove one valeu from matrix an shift valeu left

Matlab remove one valeu from matrix an shift valeu left

I have a matrix like this:
A= [5 3 2 1 5 6;
3 2 5 1 5 3]
and i have to remove the number 1 from the second line, and shift (the
number 5 and 3) to the left. The result must be:
A= [5 3 2 1 5 6;
3 2 5 5 3 X]
I put X, because no matter what happens with this number. The size of A
can't modify.

No comments:

Post a Comment