展开全部
To display text or array
DESCRIPTION:
disp(X) displays an array, without printing the array name. If X contains a text string, the string is displayed. Another way to display an array on the screen is to type its name, but this prints a leading "X =," which is not always desirable. Note that disp does not display empty arrays.
这是Matlab help上的原文,看来disp是输出函数,而非输入函数,要输入一个逻辑矩阵可以用input命令 A=input('A=?');
DESCRIPTION:
disp(X) displays an array, without printing the array name. If X contains a text string, the string is displayed. Another way to display an array on the screen is to type its name, but this prints a leading "X =," which is not always desirable. Note that disp does not display empty arrays.
这是Matlab help上的原文,看来disp是输出函数,而非输入函数,要输入一个逻辑矩阵可以用input命令 A=input('A=?');
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询