Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Adjacency matrix .I have adjacency matrix . I want to convert it into generalise matlab code .
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
A=[0,1,1,0,0,0,0,0,1,1;1,0,1,1,0,0,0,0,0,1;1,1,0,1,1,0,0,0,0,0;0,1,1,0,1,1,0,0,0,0;0,0,1,1,0,1,1,0,0,0;0,0,0,1,1,0,1,1,0,0;0,0,0,0,1,1,0,1,1,0;
0,0,0,0,0,1,1,0,1,1;1,0,0,0,0,0,1,1,0,1;1,1,0,0,0,0,0,1,1,0]
G=graph(A)
plot(G)
1 Kommentar
Walter Roberson
am 13 Aug. 2023
How does this differ from https://www.mathworks.com/matlabcentral/answers/2007927-adjacency-matrix-i-want-to-simply-the-code ?
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
