matlab disp命令表示什么

学习 时间:2026-08-23 05:35:42 阅读:7977
matlab disp命令表示什么disp('输入判断矩阵A')请问这个A怎么输入呢?

最佳回答

落后的唇膏

奋斗的月饼

2026-08-23 05:35:42

To display text or arrayDESCRIPTION: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=?');

最新回答共有2条回答

  • 飘逸的紫菜
    回复
    2026-08-23 05:35:42

    To display text or arrayDESCRIPTION: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=?');

上一篇 黄冈新建小竹楼记的翻译 和思想感情

下一篇 观察物体前,调节显微镜镜头的顺序是什么