Thread Subject: Displaying a matrix as a network

Subject: Displaying a matrix as a network

From: Brandon Aubie

Date: 2 Aug, 2006 10:47:34

Message: 1 of 3

I have a 24x24 matrix with values ranging from -1 to 1.

What I'd like to do is have 24 nodes in a graph with connections
(lines) between each node that

a) Show whether there's a connection at all or not (by line or no
line)

and

b) Show the value of the connection (be it by line width, colour,
dashes, whatever).

Is there anything built into Matlab that can do this, or could you
point me towards some code that does?

Thanks!

Subject: Displaying a matrix as a network

From: Fangjun Jiang

Date: 2 Aug, 2006 11:04:15

Message: 2 of 3

I remember seeing some thing similar to this.
Here is the link.
 <http://www.mathworks.com/contest/golf_1.cgi/analysis.html>

It's the graphic analysis of the Matlab Golf contest. There are
source code there. Maybe it can give you some clues.

Brandon Aubie wrote:
>
>
> I have a 24x24 matrix with values ranging from -1 to 1.
>
> What I'd like to do is have 24 nodes in a graph with connections
> (lines) between each node that
>
> a) Show whether there's a connection at all or not (by line or no
> line)
>
> and
>
> b) Show the value of the connection (be it by line width, colour,
> dashes, whatever).
>
> Is there anything built into Matlab that can do this, or could you
> point me towards some code that does?
>
> Thanks!

Subject: Displaying a matrix as a network

From: Brandon Aubie

Date: 2 Aug, 2006 11:21:09

Message: 3 of 3

I've discovered biograph which is great for part a) of my question,
but not very good at showing the weights for me.

 <http://www.mathworks.com/products/demos/bioinfo/biographdemo/biographdemo.html>

 Brandon Aubie wrote:
>
>
> I have a 24x24 matrix with values ranging from -1 to 1.
>
> What I'd like to do is have 24 nodes in a graph with connections
> (lines) between each node that
>
> a) Show whether there's a connection at all or not (by line or no
> line)
>
> and
>
> b) Show the value of the connection (be it by line width, colour,
> dashes, whatever).
>
> Is there anything built into Matlab that can do this, or could you
> point me towards some code that does?
>
> Thanks!

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com