This set of functions efficiently compute argument of maximum/minimum for vectors and matrices. Its core is a MEX function obtained by compiling a C source code.
Its benefits agains Matlab built-in max and min functions are demonstrated in a demo.
Marco Cococcioni (2021). ARGMAX/ARGMIN (https://www.mathworks.com/matlabcentral/fileexchange/24210-argmax-argmin), MATLAB Central File Exchange. Retrieved .
Inspired: argmax for tensors with custom type index and AVX2 optimization (mex)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Is this code only for Windows 32 system?