Hi everyone,
Let us assum that I have two arrays as follows:
A = [1 2 3 4 5]B = [3 4 5 6 7]
I want to use colon funcion to create Matrix C:
C = [1 2 3 2 3 4 3 4 5 4 5 6 5 6 7]
I used the folloing function, but it does not work. I can use a loop to create this matrix, but I want to know what is the fastest solution. Any idea?
[1 2 3 4 5]: 1: [3 4 5 6 7]
Thanks,
Amir
Best Answer