min
Smallest elements in array
句法
m =最小(A)
m =min(A,[],dim)
m = min(a,[],nanflag)
M = min([],暗,nanflag)
[m,i] = min(___)
c = min(a,b)
c = min(a,b,nanflag)
Description
返回the smallest elements ofm
= min(min一个
)一个
。
如果
一个
是一个向量,然后最小(A)
返回the smallest element of一个
。如果
一个
是a matrix, then最小(A)
是a row vector containing the minimum value of each column.如果
一个
是a multidimensional array, then最小(A)
沿着第一个数组尺寸运行,其大小不相等1
,,,,treating the elements as vectors. The size of this dimension becomes1
尽管the sizes of all other dimensions remain the same. If一个
是an empty array with first dimension0
, 然后最小(A)
返回an empty array with the same size as一个
。
Examples
输入参数
Output Arguments
Extended Capabilities
在R2006a之前引入
这个话题有帮助吗?