Since clustergram was designed to visualize data, there is not currently a documented way to keep a figure from appearing. However, one of the benefits of MATLAB is that you can view and modify the code for many of the functions that come with it. I don't know if this will work for you, but one workaround would be to modify clustergram and comment out or remove the call to view that causes the figure to appear.
2 Comments
Guillaume (view profile)
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/419938-is-there-a-simple-way-to-suppress-the-pop-up-figure-which-is-created-automatically-when-calling-clus#comment_612484
Iddo Weiner (view profile)
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/419938-is-there-a-simple-way-to-suppress-the-pop-up-figure-which-is-created-automatically-when-calling-clus#comment_612503
Sign in to comment.