Title with multiple outputs
7 次查看(过去 30 天)
显示 更早的评论
Here is my code:
title = (['k = %0.3f ', format(f * chord / Uinf), ...
't/T = %0.3f ', format(tInterval(t) / .5) + r, ...
'\theta_p = %0.3f ', format(theta_t(t) * 180 / pi) + r, ...
' C_Y = %0.3f ', format(float(CySto(n)))]);
Is there a way of doing this?
[EDITED, Jan, Code formatted]
0 个评论
回答(2 个)
KL
2017-11-20
Try this,
title(['k = ' num2str(k) ' t/T = ' num2str(t/T) ' \theta_p = '...
num2str(theta_p) '\circ C_{\Upsilon} = ' num2str(C_Y)],'Interpreter','tex')
3 个评论
Image Analyst
2017-11-21
Then use
title(['k = ' num2str(k) ' t/T = ' num2str(t) ' \theta_p = '...
num2str(theta_p) '\circ C_{\Upsilon} = ' num2str(C_Y)],'Interpreter','tex')
instead.
Walter Roberson
2017-11-23
str = sprintf('$k = %0.3f \\qquad t/T = %0.3f \\qquad \\theta_\\rho = %0.3f ^{\\circ} \\qquad C_\\gamma = %0.3f$', f * chord / Uinf, tInterval(t) / .5, theta_t(t) * 180 / pi, CySto(n));
title(str, 'interpreter', 'latex')
Please re-check, as I did not know what the '+r' was intended to indicate
5 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!