How to combine sprintf, fractions, greek characters, and xlabel?
38 次查看(过去 30 天)
显示 更早的评论
What is wrong with this? Each piece prints individually under the x-axis, but combining the three statements is not successful.
xlabel([sprintf('Nondimensional time %c = ',964),'$\frac{t_{fz}}{t_{scale}}$', ...
sprintf('\n$t_{scale}$ = %.2g s',tscale)],'interpreter','latex');
0 个评论
采纳的回答
Walter Roberson
2018-5-25
When you use latex interpreter, you cannot use any character position past 255.
I suggest using \tau
0 个评论
更多回答(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!