so have this:
names - cell array of size 39x1, each cell containing string. example names{1} = 'x0'
so code far looks like:
= 1:39 %gets names out cell array names{i} = graphnames %create new graph g = graph ******** end
where *******s want rename graph variable graphnames, no matter graph ends being called graphnames, not x0. when graph i'm referring graph nodes , edges... amazing!
you made mistake in line names{i} = graphnames
. happends every cell in struct 'names' given name graphnames. hence, graphs ends being called graphnames.
= 1:39 %gets names out cell array graphnames=names{i} %create new graph g = graph ******** end
this piece of code stores names located in struct 'names' in graphnames vector. subsequently, need extract names graphnames vector. however, don't see code of doing this. hence, cannot further.
Comments
Post a Comment