| MATLAB C++ Math Library | Search  Help Desk |
| sort | See Also |
Sort elements in ascending order
C++ Prototype
mwArray sort(const mwArray &A); mwArray sort(mwArray *INDEX, const mwArray &A); mwArray sort(const mwArray &A, const mwArray &dim); mwArray sort(mwArray *INDEX, const mwArray &A, const mwArray &dim);
C++ Syntax
#include "matlab.hpp" mwArray A, dim; // Input argument(s) mwArray INDEX; // Output argument(s) mwArray B; // Return value B = sort(A); B = sort(&INDEX,A); B = sort(A,dim); B = sort(&INDEX,A,dim);
MATLAB Syntax
B = sort(A) [B,INDEX] = sort(A) B = sort(A,dim)
See Also
sort Calling Conventions