min.m
来自「matlab 模式识别工具包 希望能对你们有用」· M 代码 · 共 31 行
M
31 行
%MAX Dataset minfunction [s,I] = min(a,b,dim)if nargin == 1 [s,I] = min(a.d);elseif nargin == 2 if ~isa(a,'dataset') s = b; s.d = min(a,b.d); elseif ~isa(b,'dataset') s = a; s.d = min(a.d,b); else s = a; s.d = min(a.d,b.d); endelseif nargin == 3 if ~isempty(b) error('min with two matrices to compare and a working dimension is not supporte') end if dim == 1 [s,I] = min(a.d,[],1); elseif dim == 2 s = a; [s.d,I] = min(a.d,[],2); featlist = 'min'; else error('Dimension should be 1 or 2') endendreturn
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?