Hello everyone, I have a vector similar to this:
v = [NaN NaN 1 2 3 4 5 NaN NaN 6 7 8 9 10 NaN NaN NaN NaN 11 12 13 14 15 16 17 18 NaN NaN]
I would like to separate the sets of numbers into new variables. Then it would look like this:
v1 = [1 2 3 4 5]
v2 = [6 7 8 9 10]
v3 = [11 12 13 14 15 16 17 18]
I thought a lot about how to do this but I could not, I could do it manually, but it's a lot of numbers and it would be very hard work. So I decided to ask here. If anyone can help me, I will be very grateful.
Best Answer