function [sD sM] = train_som(svmlabel, svmdata, somOptions)

display('SOM TRAINING');
addpath 'somtoolbox2';
sD = som_data_struct(svmdata,'label',num2str(svmlabel));
assignin('base','sD',sD);
sM = som_make(sD,'msize', [3 3],'lattice', 'hexa');

assignin('base','sD',sD);
assignin('base','sM',sM);
display('type ''figure'' before visualisation');
end