matlab disp命令表示什么

学习 时间:2026-04-09 07:36:58 阅读:3782
matlab disp命令表示什么disp('输入判断矩阵A')请问这个A怎么输入呢?

最佳回答

冷静的萝莉

贪玩的美女

2026-04-09 07:36:58

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-04-09 07:36:58

    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=?');

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

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