I have tried two years to plot Som map (self-organizing map);but I can't do it with matlab
this is my program (I want plot the position of the input [1 0] in the map) please help me
I have read help plotsom, doc , nothing to do this
p1=[1 1]'; p2=[1 2]'; p3=[2 -1]'; p4=[2 -2]'; p5=[-1 2]'; p6=[-2 1]'; p7=[-1 -1]'; p8=[-2 -2]';P=[p1 p2 p3 p4 p5 p6 p7 p8];% Create a Self-Organizing Map
dimension1 = 10;dimension2 = 10; net = selforgmap([dimension1 dimension2]);% Train the Network
[net,tr] = train(net,P); % Test the Network
outputs = net(P);% View the Network
view(net)%test
A=sim(net,[1 0]);%plot Som map
axis([0 10 0 10]);%hold on; plotting A in the Map
circles = plot(A,'ob');
Best Answer