Hi all
I have the following question:
I have a vector (see attached input example). The vector consists of the numbers 0, 1, 2, 3, 4.
And I would like to replace four (just an example, it can also be five, six or seven) 0 cells after each 1, 2, 3, 4 with the sam enumber that appeared before (see attached output example).
How would you write this?
Thank you in advance.
Lisa
I have the following question:
I have a vector (see attached input example). The vector consists of the numbers 0, 1, 2, 3, 4.
And I would like to replace four (just an example, it can also be five, six or seven) 0 cells after each 1, 2, 3, 4 with the sam enumber that appeared before (see attached output example).
How would you write this?
Thank you in advance.
Lisa
Attachments
-
348 bytes Views: 12
-
348 bytes Views: 19