make clustergram without printing

My script makes hundreds of clustergrams. Each time the "clustergram" function is called, it makes a figure window, which "pops up" and "steals the focus" of my computer (i.e. interrupts me while i am working on something else).
How can I plot a clustergram without making the figure?
With standard linear line plots, you just have to specify "figure('visibility', 'off');"
This does not work for clustergrams.

回答 (2 件)

Ahmet Cecen
Ahmet Cecen 2015 年 4 月 23 日

2 投票

Try starting MATLAB with:
matlab -noFigureWindows

4 件のコメント

cmo
cmo 2015 年 4 月 23 日
good idea, but that option is not available in UNIX (says Matlab support team)
Ahmet Cecen
Ahmet Cecen 2015 年 4 月 23 日
Okay, here is the fix (also attached):
Open clustergram.m and comment out line 416.
cmo
cmo 2015 年 4 月 24 日
Good idea. I had tried that as well. it didn't help, surprisingly
Ahmet Cecen
Ahmet Cecen 2015 年 4 月 24 日
Wow, it must be a UNIX thing then, because I tried it on 2 different versions and it works for me. Not sure what else I can suggest.
Are you sure you are not accidentally using the built in clustergram? Change the name of the function I attached, like clustergram2 and try again?

サインインしてコメントする。

yi li
yi li 2018 年 9 月 29 日

0 投票

Amazing! It is useful!

カテゴリ

質問済み:

cmo
2015 年 4 月 23 日

回答済み:

2018 年 9 月 29 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by