3

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.

motiur
  • 1,640
  • 9
  • 33
  • 61
  • 1
    it would be nice if we can actually reproduce this plot (or at least some minimal code). How does it originally look like? How do you know where to put which label? etc – bla May 14 '14 at 05:41
  • Don't ask individual users of this site to help you. If you just post the question properly it is likely to get the attention it deserves, and otherwise it will surely stand out with the bounty you gave it. – Dennis Jaheruddin May 14 '14 at 12:20

2 Answers2

3

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

kuskus
  • 176
  • 7
2

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.

shimizu
  • 998
  • 14
  • 20