ilarinieminen / SOM-Toolbox

GNU General Public License v2.0
119 stars 56 forks source link

Problem running som_demo2 #25

Open HumbAlonso opened 6 years ago

HumbAlonso commented 6 years ago

Hi,

I start woking with SOM, in order to know what the toolbox is capable to do, I'm running the demo scrpits, using Matlab R2015a. When I was running the second demo, the program stops in the fourth step, and show the message:

image

actually I'm not very good using Matlab, but so I thought I can deal with the error changing some variables names, but didn't work.

I appreciate if someone can help me with this

egarpor commented 5 years ago

Perhaps not of any help to you, but the issue seems to be related with a change that happened in MATLAB R2014b:

Starting in R2014b, colorbars and legends are no longer axes objects.

Check https://es.mathworks.com/help/matlab/graphics_transition/why-are-colorbars-and-legends-not-valid-axes-handles.html?lang=en

surabhi1401 commented 4 years ago

hi , please helpme regarding som demo4.I am running on MATLAB 2019a and i am getting this error Capture

SinaDavid commented 2 years ago

Hey @surabhi1401 I don't know if you still have your issue, but I could solve it by going into the som_show function, and then outcomment lines 494 - 499 where it says:

% if General.comp(i)> -1 & ~strcmp(General.colorbardir,'none'), % h_colorbar(i,1)=colorbar(General.colorbardir); % colorbars % else % h_colorbar(i,1)=-1; % General.comp(i)=-1; % end

this lines don't work with matlab versions > 2014.

Hope it helps!

Sina

675979649 commented 1 year ago

I think it might be a matlab version issue, I get errors on 2022a, but it works fine on 2012a

SinaDavid commented 1 year ago

Hey, Yes it is a version problem affecting versions newer than 2014. Did you try my solution?