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 ExchangeInteractive Control and Callbacks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by