How to augment a vector into another vector?
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad Sardar Khan
am 14 Apr. 2015
Bearbeitet: Azzi Abdelmalek
am 14 Apr. 2015
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]
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 14 Apr. 2015
v1 = [0 1 2 3],
v2 = [0 1 2]
[a,b]=ndgrid(v1,v2)
out=[a(:) b(:)]
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Pole and Zero Locations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!