How to store graphs (undirected) i cell array and retrieve them
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Arek
am 20 Jan. 2022
Beantwortet: Arek
am 20 Jan. 2022
I am writting an algorithm based on graph. In the process I am creating and modifying undirected graphs. It is mostly performed in the for loop so I thought I can store them in cell array like this:
graphCellArray(i) = {myGraph};
The problem appears when I want to retrieve it from graphCellArray. How can I do it ? Or maybe I should use some other methods?
0 Kommentare
Akzeptierte Antwort
Yongjian Feng
am 20 Jan. 2022
You meant:
graphCellArray = {g1, g2, g3};
graphCellArray{1} % access the first one
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Undirected Graphs 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!