C++ Math Library Reference | ![]() ![]() |
Trapezoidal numerical integration
C++ Prototype
mwArray trapz(const mwArray &Y); mwArray trapz(const mwArray &X, const mwArray &Y); mwArray trapz(const mwArray &X, const mwArray &Y, const mwArray &dim);
C++ Syntax
#include "matlab.hpp" mwArray X, Y, dim; // Input argument(s) mwArray Z; // Return value Z = trapz(Y); Z = trapz(X,Y); Z = trapz(X,Y,dim);
MATLAB Syntax
Z = trapz(Y) Z = trapz(X,Y) Z = trapz(...,dim)
See Also
trapz
Calling Conventions![]() | trace | tril | ![]() |