how to create matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
node = 3;
i want this matrix logically
0 1 1
1 0 1
1 1 0
please help to generate this
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Robert Brown
am 18 Apr. 2021
you can specify the elements of a 3x3 matrix as follows:
>> a = [1 2 3; 4 5 6; 7 8 9]
the result will be
a =
1 2 3
4 5 6
7 8 9
with the correct order of 1's and 0's, you should be able to build the arrays you wish to have...
I hope this helps :-)
Siehe auch
Kategorien
Mehr zu Logical 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!