Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visualize a graph in matlab

Tags:

graph

matlab

I have a graph consisting of a set of edges with their corresponding start and end nodes. These were generated for a specific region of a city. How can I visualize this graph in matlab

like image 524
rajan sthapit Avatar asked Jun 14 '12 16:06

rajan sthapit


1 Answers

Check out this function:

doc gplot

Example:

% Plot half of a "Bucky ball" carbon molecule, placing asterisks at each node:
k = 1:30;
[B,XY] = bucky;
gplot(B(k,k),XY(k,:),'-*')
axis square

gplot_output

like image 150
Franck Dernoncourt Avatar answered Oct 13 '22 00:10

Franck Dernoncourt