I would like the title of my plot to be user-defined:
So something like: n = input('n: ') title('Plot of ... with n=%5.15f', n)
But this suggested code doesn't work, could someone suggest a command that works? Thank you.

 채택된 답변

Walter Roberson
Walter Roberson 2012년 3월 31일

1 개 추천

title(sprintf('Plot of ... with n=%5.15f', n));

댓글 수: 1

Image Analyst
Image Analyst 2012년 3월 31일
A useful option of title is the ability to set the size of the font:
title(caption, 'FontSize', 30); % or whatever size you want.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by