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!

 채택된 답변

Wayne King
Wayne King 2011년 10월 10일

0 개 추천

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

추가 답변 (1개)

Craig Lessman
Craig Lessman 2011년 10월 10일

0 개 추천

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

카테고리

도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by