How to augment a vector into another vector?
Mostra commenti meno recenti
v1 = [0 1 2 3],
v2 = [0 1 2]
the resultant
v3 =[0 0;
1 0;
2 0;
3 0;
0 1;
1 1;
2 1;
3 1;
0 2;
1 2;
2 2;
3 2]
Risposta accettata
Più risposte (1)
tdd4c1
il 14 Apr 2015
v3 = [repmat(v1',3,1) reshape(repmat(v2,4,1),1,[])']
Categorie
Scopri di più su Pole and Zero Locations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!