更新时间:2022-01-03 09:05:37
nanmin
仅调用min
:
[varargout{1:nargout}]=min(varargin{:});
与nanmax
类似.就是这样!
在过去的某些发行版中,内置的min
和max
已使用相同的功能进行了更新,而忽略了NaN
,并且工具箱只是开始指向它们而不是维护其自己的实现.除非您正在使用可能具有这些功能自己的实现的特殊类型,否则只需使用max
和min
.
In some past release, the built-in min
and max
were updated with the same functionality, ignoring NaN
, and the toolboxes just started pointing to them instead of maintaining their own implementations. Just use max
and min
, unless you are working on special types that might have their own implementations of these functions.