(translator=Erison, ChineseSource=Erison-20020423-4.5\ndims.html, EnglishSource=c:\matlabr12\help\techdoc\ref\ndims.html)
MATLAB Function Reference    
ndims

陣列的維度

Syntax

Description

n = ndims(A) 回傳陣列 A 的維度。陣列的維度通常大於或等於 2。後面延生出來的單一維度(singleton dimension)則忽略不計。對於維度 dim,若 size(A,dim) = 1 則稱之為單一維度。

Algorithm

ndims(x)length(size(x)) 結果相同。

See Also

size


 ndgrid newplot