Error using clustergram function

조회 수: 3 (최근 30일)
Mari
Mari 2017년 4월 21일
답변: Melissa Lemke 2017년 11월 10일
Hi
I get the following error when using the clustergram function: Error using clustergram>computeDendrogram (line 1274) Encountered error while computing hierarchical clusters: Too many input arguments.
However, I make use of the default setting and therefore only send my data through to the function.
I think it may be the software version (R2016b) I'm using as I do not get this error when running my code on "older" software?
Please help
Thank you Mari
  댓글 수: 1
Melissa Lemke
Melissa Lemke 2017년 11월 10일
I am getting the same error, even when using the clustergram example provided by MATLAB:
edit clustergramdemo
I am using MATLAB R2017b (same issues with 2017a as well), and have not had issues with clustergram before. I have checked which for another function called clustergram and as far as I can tell, it is calling the correct function.
which -all clustergram
C:\Program Files\MATLAB\R2017a\toolbox\bioinfo\microarray\@clustergram\clustergram.m % clustergram constructor
Full error message:
Error using clustergram>computeDendrogram (line 1274)
Encountered error while computing hierarchical clusters:
Too many input arguments.
Error in clustergram/computeClusters (line 904)
[Z1, H1, ~, perm1] = computeDendrogram(data,...
Error in clustergram (line 408)
computeClusters(obj);

댓글을 달려면 로그인하십시오.

채택된 답변

Melissa Lemke
Melissa Lemke 2017년 11월 10일
Solved: I reset the path to the default (home tab>set path>default>save>restart matlab). You will need to make note of any manual changes you have made to the saved path to make them again (i.e. third party toolboxes will have to be reinstalled).
I could not identify the specific folder that was causing the issue for me. If you have made manual changes to the saved path, you may want to make these one by one, restarting matlab and testing the clustergram function with each.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Management에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by