Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

save clustergram object as .fig

81 views
Skip to first unread message

Lisa

unread,
Mar 11, 2009, 6:43:01 AM3/11/09
to
Hi all,

I'm using the clustergram function in the Bioinformatics toolbox and trying to save the clustergram object as a MATLAB figure (.fig). I know that you can 'Print to figure' from the File menu - what is the equivalent on the command line (this code is to be automated)?

Apologies in advance if this is very straightforward, but google is not being my friend.

Ta, L.

Lucio Andrade-Cetto

unread,
Mar 11, 2009, 7:21:01 AM3/11/09
to
You can use the plot method for the clustergarm object:

load filteredyeastdata;
cg = clustergram(yeastvalues(1:30,:));
plot(cg)

Let me know if this helps you
Lucio

"Lisa " <li...@dcs.gla.ac.uk> wrote in message <gp84jl$93e$1...@fred.mathworks.com>...

Lucio Andrade-Cetto

unread,
Mar 11, 2009, 7:23:02 AM3/11/09
to
You can use the plot method for the clustergarm object:

load filteredyeastdata;
cg = clustergram(yeastvalues(1:30,:));
plot(cg)

Let me know if this helps you
Lucio

"Lisa " <li...@dcs.gla.ac.uk> wrote in message <gp84jl$93e$1...@fred.mathworks.com>...

Lisa

unread,
Mar 11, 2009, 8:08:02 AM3/11/09
to
Thank you, that worked a treat. L.
PS. Don't know why I didn't manage to find that myself...!?

"Lucio Andrade-Cetto" <lce...@nospam.mathworks.com> wrote in message <gp86um$a30$1...@fred.mathworks.com>...

0 new messages