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');

采纳的回答

Walter Roberson
Walter Roberson 2018-5-25
When you use latex interpreter, you cannot use any character position past 255.
I suggest using \tau

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Labels and Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by