how to create a matrix in matlab?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ankanna
am 16 Mär. 2021
Kommentiert: ankanna
am 20 Apr. 2021
L12 L13 L23
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
how to create a matrix
0 Kommentare
Akzeptierte Antwort
Veronica Taurino
am 16 Mär. 2021
Bearbeitet: Veronica Taurino
am 16 Mär. 2021
Your question is not clear. If you have those 3 arrays:
L12 = [0 0 0 0 1 1 1 1];
L13 = [0 0 1 1 0 0 1 1];
L23 = [0 1 0 1 0 1 0 1];
Matrix = [ L12; L13; L23]
or
Matrix = [ L12; L13; L23 ]'
depending or your needs
0 Kommentare
Weitere Antworten (2)
Walter Roberson
am 16 Mär. 2021
[L23, L13, L12] = ndgrid(0:1);
L12 = L12(:); L13 = L13(:); L23 = L23(:);
table(L12, L13, L23)
15 Kommentare
Walter Roberson
am 11 Apr. 2021
That code will never do what you want it to do, and it cannot be fixed.
Your source is a paper that is wrong. You need to get corrections from the authors of the paper.
Siehe auch
Kategorien
Mehr zu Data Distribution Plots 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!