Using the C Math Library    

Calling Operators   

Every operator in MATLAB is mapped directly to a function in the MATLAB C Math Library. Invoking MATLAB operators in C is simply a matter of determining the name of the function that corresponds to the operator and then calling the function as explained above. The section Operators and Special Functions lists the MATLAB operators and the corresponding MATLAB C Math Library functions.


 Example - Calling Library Routines (ex3.c) Passing Functions As Arguments to Library Routines