R2016a error using "Print to Figure" for clustergram
조회 수: 4 (최근 30일)
이전 댓글 표시
I have created a clustergram and am trying to use File>Print to Figure and receive the following errors. Any idea what's going on here and how to fix this?
"Error using assert The condition input argument must be a scalar logical.
Error in HeatMap/plot>initHMAxes (line 198) assert(obj.HMAxesHandle == hHMAxes)
Error in HeatMap/plot (line 76) initHMAxes(obj, hHMAxes);
Error in clustergram/plot (line 155) imAxes = plot@HeatMap(obj, hFig, varargin{:});
Error in clustergram/view>dotPrintToFigureCB (line 445) plot(newcg_o)
Error while evaluating Menu Callback"
댓글 수: 0
답변 (1개)
Saurabh
2025년 5월 14일
I also faced a similar problem when trying to pring a clustegram to a figure in MATLAB. This error occurs because the 'HeatMap/plot' function in older MATLAB versions(like 2016a) has a bug where it expects a scalar logical value.
Upgrading MATLAB from R2016a to R2016b or above resolved the issue for me, as newer versions have fixed this problem
I hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Expression Analysis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!