Somthing wrong with SOM Toolbox

조회 수: 12 (최근 30일)
Chen Liying
Chen Liying 2021년 7월 31일
댓글: Chen Liying 2021년 7월 31일
Hi, I am working with somtoolbox2_Mar_17_2005 to classify example Iris. As described in instructor, I have input the code as follows:
%make the data
sD = som_read_data('iris.data');
sD = som_normalize(sD, 'var');
%make the SOM
sM = som_make(sD);
sM = som_autolabel(sM, sD, 'vote');
%basic visualization,
som_show(sM,'umat', 'all', 'comp', 1:4, 'empty', 'Labels', 'norm', 'd');
However, there occured a mistake: The double value -1 cannot be converted to a handle
Error som_show (line 497)
h_colorbar(i,1)=-1;
Figure below is the part of som_show function

채택된 답변

Rik
Rik 2021년 7월 31일
There isn't actually something wrong with the toolbox (at least with this code snippet). It is just assuming the handle to a colorbar object can be stored in a double, which is not true since R2014b.
You will either have to find/make an updated version of the code or use an older Matlab release.
  댓글 수: 1
Chen Liying
Chen Liying 2021년 7월 31일
Thank you very much, your anser help me a lot!!!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by