Convert three array into one matrix.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DAT VUONG
am 28 Aug. 2017
Kommentiert: DAT VUONG
am 30 Aug. 2017
I have two array 1xn (A1....An), 1xm(B1...Bm) and value Z. I want to create one matrix nxm rows and 3 columns as follow:
A1 B1 Z,
A1 B2 Z,
...
A1 Bm Z,
A2 B1 Z,
...
An B1 Z,
...
An Bm Z
I do not know how to create this. Could you please help me to solve this problem. Thanks for your help.
0 Kommentare
Akzeptierte Antwort
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!