motiur
motiur

Reputation: 1680

Labelling a plotmap of self organizing map in Matlab(edited)

I want to label the plothitmap plotsomhits(net,inputs) of the iris dataset found in the neural network toolbox. How would I do that. I want the class labels to be superimposed on the plothitmap. Any ideas?It would look something like this:

enter image description here

Is it possible?Thanks.

Upvotes: 3

Views: 1930

Answers (2)

shimizu
shimizu

Reputation: 998

If you have the coordinates that each class label corresponds to you can just do:

plotsomhits(net,inputs);
text(x1,y1,label1); //this will put a text label superimposed on the current plot

Of course if you have lots of lablels, then you can iterate over a for loop to add the labels.

Here is a link to documentation on how to use text here.

Upvotes: 2

kuskus
kuskus

Reputation: 176

If the built-in function to display the label not available for plotsom... function, you may want to consider using manual annotation on each cell using annotationtextbox function as described in this link

Upvotes: 3

Related Questions