且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

min和Nanmin的区别是什么? Matlab中的max和Nanmax吗?

更新时间:2022-01-03 09:05:37

nanmin仅调用min:

[varargout{1:nargout}]=min(varargin{:});

nanmax类似.就是这样!

在过去的某些发行版中,内置的minmax已使用相同的功能进行了更新,而忽略了NaN,并且工具箱只是开始指向它们而不是维护其自己的实现.除非您正在使用可能具有这些功能自己的实现的特殊类型,否则只需使用maxmin.

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.