Create a vector from repetition of two others
2 views (last 30 days)
Show older comments
Greetings
I come to you with what should have an easy solution but one that I can't seem to figure out.
I want to make a line vector from two other vector that have the same size by repeating them a number of time alternatively.
For example
A=[1 2 3 4 5];
B=[6 7 8 9 10];
n=20;
C=[A,B,A,B,A,B,......] %n times
Thank you in advance for your help
JdC
0 Comments
Accepted Answer
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!