Skip to Main Content
High Performance Programming for Soft Computing
book

High Performance Programming for Soft Computing

by Oscar Montiel Ross, Roberto Sepulveda
February 2014
Intermediate to advanced content levelIntermediate to advanced
376 pages
11h 49m
English
CRC Press
Content preview from High Performance Programming for Soft Computing
82 High Performance Programming for Soft Computing
where the meanings of the arguments of the mex function are described
in Table 3.1:
Table 3.1 Mex function arguments.
C/MEX Meaning M-code equivalent
Nhls Number of output variables nargout
Plhs Array of mxArray pointers to the output variables varagout
Nrhs Number of input variables nargin
Prhs Array of mxArray pointers to the input variables varagin
For our example, the mex function is called from MATLAB as follows:
Result=MatrixOperation(Matrix1,Matrix2)
where we have, nhls = 1 because Result is only one variable calculated
in the mex function, and plhs[0] is a pointer (type mxArray*) pointing to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Soft Computing and Its Applications, Volume One

Soft Computing and Its Applications, Volume One

Kumar S. Ray
Point-Based Graphics

Point-Based Graphics

Markus Gross, Hanspeter Pfister

Publisher Resources

ISBN: 9781466586017