User`s manual
MATLAB ActiveX Automation Server Support
7-17
Note The first statement above should be declared in the general
declarations section in order to keep the scope throughout the application.
MATLAB ActiveX Automation Methods
This section lists the methods that are supported by the MATLAB Automation
Server. The data types for the arguments and return values are expressed as
ActiveX Automation data types, which are language-independent types
defined by the ActiveX Automation protocol. For example,
BSTR is a
wide-character string type defined as an Automation type, and is the same data
format used by Visual Basic to store strings. Any ActiveX-compliant controller
should support these data types, although the details of how you declare and
manipulate these are controller specific.
BSTR Execute([in] BSTR Command);
This command accepts a single string (Command), which contains any command
that can be typed at the MATLAB command window prompt. MATLAB will
execute the command and return the results as a string. Any figure windows
generated by the command are displayed on the screen as if the command were
executed directly from the command window or an M-file. A Visual Basic
example is
Dim MatLab As Object
Dim Result As String
Set MatLab = CreateObject("Matlab.Application")
Result = MatLab.Execute("surf(peaks)")
void GetFullMatrix(
[in] BSTR Name,
[in] BSTR Workspace,
[in, out] SAFEARRAY(double)* pr,
[in, out] SAFEARRAY(double)* pi);
Note The first statement above should be declared in the general
declarations section in order to keep the scope throughout the application.