Skip to content

Instantly share code, notes, and snippets.

@binary-signal
Created April 23, 2017 18:18
Show Gist options
  • Save binary-signal/372503543110d918ae39711bae0d01f4 to your computer and use it in GitHub Desktop.
Save binary-signal/372503543110d918ae39711bae0d01f4 to your computer and use it in GitHub Desktop.
graphs in matlab
num_nodes =10
G = graph;
for n=1:num_nodes
G= addnode(G,strcat('node_',int2str(n)));
end
k =G.Nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment