I have a scatter plot and would like to add labels with arrows for each data point (similar to the example below). I have a cellstring vector called ' labelc' with data labels of the same length as my x and y data vectors. I tried to use the annotation function in matlab to create the labels as follows…
a = annotation('textarrow',x,y,'String',labelc);
…but got an error message:
Error using annotation (line 121) unknown argument
Does anybody know how to achieve this?
Best Answer