Warning: Unable to interpret TeX string ?

When I add text to a figure, the following warning is displayed:
Warning: Unable to interpret TeX string "c:\temp\data.txt"
Here is the code:
DataFileName='c:\temp\data.txt'
figure
title(DataFileName)
The File name is displayed correctly - the only problem are the pesky wraning indications! What technique should be utilized to avoid the warnings?
Thanks in advance!

 Akzeptierte Antwort

Wayne King
Wayne King am 10 Okt. 2011

0 Stimmen

In this case, you can do
DataFileName='c:\temp\data.txt';
figure
title(DataFileName,'interpreter','none')

Weitere Antworten (1)

Craig Lessman
Craig Lessman am 10 Okt. 2011

0 Stimmen

Wayne,
Thanks for your answer! The question was actually directed toward the "annotation('textbox'... )" function. Your answer solved my problem.

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by