Report Generator; how to deal with special characters & indenting
2 ビュー (過去 30 日間)
古いコメントを表示
Dear Matlab-Users
I'm currently working on a template file to generate pdf reports with ReportGenerator. The report summarizes user input from a GUI, and I face two problems. Any help is highly appreciated.
1. How to deal with special characters? Greek letters need to be included in the report and '\mu' does not work. Moreover, '\n' does not work to include line breaks in strings. 2. Is it possible to control the indenting? The system automatically sets massive indents at the beginning of new chapters and I wish to set it to zero.
Many thanks in advance.
Petra
0 件のコメント
回答 (1 件)
Riccardo Spica
2022 年 7 月 13 日
Hi Petra,
for your first question, you could exploit the sprintf function.
As an example,
sprintf('\x3B8')
will print a \theta. You can find the unicode string of a specific symbol by using Windows Character Map.
Riccardo
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Labels and Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!