disp('輸入判斷矩陣A') 請問這個A怎么輸入呢? 在線等……
1 回答

www說
TA貢獻1775條經驗 獲得超8個贊
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=?');
- 1 回答
- 0 關注
- 148 瀏覽
添加回答
舉報
0/150
提交
取消