-
IsEmpty
鎖定
- 中文名
- IsEmpty函數
- 外文名
- IsEmpty
- 定 義
- 計算機函數
- 函數功能
- 判斷一個數組是否是空的
- 語法格式
- if = isempty(A)
- 相關函數
- iscell、ischar、isdir
IsEmptyVB、VC++函數
IsEmptyMatlab函數
IsEmpty函數功能
判斷一個數組是否是空的(沒有任何元素)。
IsEmpty語法格式
if= isempty(A)
如果A是一個空數組,返回邏輯1(true);其他,則返回0(false)。
IsEmpty相關函數
IsEmpty應用舉例
>>num_box = rand(3, 3)
num_box =
0.9649 0.9572 0.1419
0.1576 0.4854 0.4218
0.9706 0.8003 0.9157
>>isempty(num_box)
ans =
0
>>num_box(:, :) = []
num_box =
Empty matrix: 0-by-3
>>isempty(num_box)
ans =
1
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:25次歷史版本
- 最近更新: 青青的麦田year