splitting a vector into separate vectors
Hi Matlab community,
I have a vector like
V = [2 2 2 2 2 4 4 4 7 7 8 9]
I want to separate this vector into
V1 = [2 2 2 2 2 ], V2=[4 4 4 ], V3=[7 7 ], V4=8, V5=9
Suppose that I do not know the value in vector V. In each iteration, I have a new vector.
ThanksHi Matlab community,
I have a vector like
V = [2 2 2 2 2 4 4 4 7 7 8 9]
I want to separate this vector into
V1 = [2 2 2 2 2 ], V2=[4 4 4 ], V3=[7 7 ], V4=8, V5=9
Suppose that I do not know the value in vector V. In each iteration, I have a new vector.
Thanks Hi Matlab community,
I have a vector like
V = [2 2 2 2 2 4 4 4 7 7 8 9]
I want to separate this vector into
V1 = [2 2 2 2 2 ], V2=[4 4 4 ], V3=[7 7 ], V4=8, V5=9
Suppose that I do not know the value in vector V. In each iteration, I have a new vector.
Thanks matrix MATLAB Answers — New Questions