User`s guide

Calling Conventions
A-7
Calling Conventions
This section describes the calling conventions for MATLAB Excel Builder
components, including mappings from the original M-functions to Visual Basic.
A function call originating from an Excel worksheet is routed from a Visual
Basic function into a compiled M-function, as shown in Figure A-3.
Figure A-3: Function Call Routing
COM Class.method
Excel Application
Visual Basic function/subroutine
Compiled M-function
sub
foo(y1,y2,x1,x2)
.
function [y1,y2] =