Title with multiple outputs
이전 댓글 표시

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]
답변 (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
Zach Dunagan
2017년 11월 21일
편집: Walter Roberson
2017년 11월 21일
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.
Zach Dunagan
2017년 11월 23일
편집: Zach Dunagan
2017년 11월 23일
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
Zach Dunagan
2017년 11월 28일
편집: Zach Dunagan
2017년 11월 28일
Walter Roberson
2017년 11월 28일
No MATLAB in there.
Look at print() and saveas() and imwrite() to save images.
Zach Dunagan
2017년 11월 28일
편집: Zach Dunagan
2017년 11월 28일
Zach Dunagan
2017년 11월 28일
편집: Zach Dunagan
2017년 11월 28일
Zach Dunagan
2017년 11월 29일
편집: Zach Dunagan
2017년 11월 30일
카테고리
도움말 센터 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!