Reputation: 1680
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:
Is it possible?Thanks.
Upvotes: 3
Views: 1930
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