Using TCL scripts to create labels on a plot

4 views (last 30 days)
I am looking for a way to attach labels to my plots but I cannot get the text function to work. I am using TCL as my scripting language.
The command is as follows:
text(x, y, index_Offset, ‘VerticalAlignment’, ‘bottom’, ‘HorizontalAlignement’, ‘right’);
Where index_Offset is ‘1’ ‘2’ ‘3’ etc.
The script just blows past the text command without attaching the result to my plot. However, if I halt the script at the text command and copy the command into matlab window the data is added to the plot.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!