Title with multiple outputs
Show older comments

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]
Answers (2)
KL
on 20 Nov 2017
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 Comments
Zach Dunagan
on 21 Nov 2017
Edited: Walter Roberson
on 21 Nov 2017
Image Analyst
on 21 Nov 2017
Then use
title(['k = ' num2str(k) ' t/T = ' num2str(t) ' \theta_p = '...
num2str(theta_p) '\circ C_{\Upsilon} = ' num2str(C_Y)],'Interpreter','tex')
instead.
Zach Dunagan
on 23 Nov 2017
Edited: Zach Dunagan
on 23 Nov 2017
Walter Roberson
on 23 Nov 2017
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 Comments
Zach Dunagan
on 28 Nov 2017
Edited: Zach Dunagan
on 28 Nov 2017
Walter Roberson
on 28 Nov 2017
No MATLAB in there.
Look at print() and saveas() and imwrite() to save images.
Zach Dunagan
on 28 Nov 2017
Edited: Zach Dunagan
on 28 Nov 2017
Zach Dunagan
on 28 Nov 2017
Edited: Zach Dunagan
on 28 Nov 2017
Zach Dunagan
on 29 Nov 2017
Edited: Zach Dunagan
on 30 Nov 2017
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!