The following Matlab project contains the source code and Matlab examples used for matlab plot gallery adding text to plots (2). This is an example of how to add text to a plot in MATLAB®. Read about the "text" function in the MATLAB® documentation. Go to MATLAB Plot Gallery - http://www.mathworks.com/discovery/gallery.html
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.