MATLAB Answers


How to produce number labelling and annotations as shown below?

Asked by Zaki Mohzani on 19 Sep 2012
Hey guys, Question is obvious. I've tried googling this to no avail. Your help is appreciated.
My plots are similar to the one shown below. MATLAB's default colour labelling nor symbols isn't helpful when many of the plots are too close to each other.
Thanks Z


Sign in to comment.

1 Answer

Answer by Matt Fig
on 19 Sep 2012
Edited by Matt Fig
on 19 Sep 2012
 Accepted Answer

Here is an example of one approach.
figure('units','pix','pos',[624 474 672 504])
x = 0:.01:1;
plot(x,cos(x).*exp(-x)+sqrt(x),'-',x,cos(x).*exp(-x) + sqrt(x).*exp(-x/12),'.')
annotation('textarrow',[.4 .5],[.5 .6],'String','1')
annotation('textarrow',[.6 .5],[.8 .68],'String','2')

  1 Comment

Excellente... Thank you Matt.

Sign in to comment.