Initial Commit

This commit is contained in:
2026-09-15 15:24:03 -04:00
commit 4dc7086e7e
605 changed files with 101380 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
function [v, idx] = maxk (x, k, varargin)
%MAXK The k largest elements, in descending order (MATLAB R2017b+).
%
% An owuitools compatibility shim; see contains.m for the policy.
% Column-wise for a matrix, like MATLAB and like `sort`. NaNs go last,
% which is also what MATLAB does. `k` larger than the data returns
% everything there is rather than erroring, again matching MATLAB.
if (nargin < 2)
error ('maxk: not enough input arguments');
end
[v, idx] = owuitools_topk (x, k, 'descend', 'maxk', varargin{:});
end