MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   MATLAB-使用字符串设置图形标题 (https://www.labfans.com/bbs/showthread.php?t=23140)

poster 2019-12-10 20:30

MATLAB-使用字符串设置图形标题
 
我正在编写一个MATLAB程序,该程序读取用户的标题以在图形上进行设置...

t = input('Please enter a title for the graph: ', 's'); 然后,我想将情节的标题设置为t 。我似乎无法正常工作...

title(t) %# returns ??? Index exceeds matrix dimensions. 非常感谢您的帮助!



[B]回答:[/B]

确保在您的会话中没有名为title变量,该变量掩盖了title()函数

禄 whos Name Size Bytes Class Attributes t 1x1 2 char title 1x1 8 double


所有时间均为北京时间。现在的时间是 05:01

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.