Borrar filtros
Borrar filtros

How to store graphs (undirected) i cell array and retrieve them

6 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Yongjian Feng
Yongjian Feng el 20 de En. de 2022
You meant:
graphCellArray = {g1, g2, g3};
graphCellArray{1} % access the first one

Más respuestas (1)

Arek
Arek el 20 de En. de 2022
Yesss, thank you :)

Categorías

Más información sobre Undirected Graphs en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by