copying the contents of a vector onto a longer vector
6 views (last 30 days)
Show older comments
Let's say I have a vector a that is of size 4. I have a vector b of size 10. I want to copy the contents of vector a into b until it 'runs out'.
For example: if a = [1 2 3 4]; and b is a size 10 vector.
Then b = [1 2 3 4 1 2 3 4 1 2].
How do i do this?
0 Comments
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!