MicrosoftVisual Basic Client

MATLAB Client

[xreal ximag] = GetFullMatrix(h,'varname','workspace',zreal,zimag)

Description

[xreal ximag] = GetFullMatrix(h,'varname','workspace',zreal,zimag) gets
matrix stored in variable varname from the specified workspace of
the server attached to handle h. The function returns
the real part in xreal and the imaginary part in ximag. The
values for workspace are base or global.

The zreal and zimag arguments
are matrices of the same size as the real and imaginary matrices (xreal and ximag)
returned from the server. The zreal and zimag matrices
are commonly set to zero.

Use GetFullMatrix for 2D matrices with
values of type double only. Use GetVariable or GetWorkspaceData for
other types. To use higher dimensional matrices, reshape the 2D matrix
after receiving it from MATLAB®.

For VBScript clients, use the GetWorkspaceData and PutWorkspaceData functions
to pass numeric data to and from the MATLAB workspace. These
functions use the variant data type instead of
the safearray data type used by GetFullMatrix and PutFullMatrix.
VBScript does not support safearray.

Examples

This example uses a Visual Basic® .NET client to read data
from a MATLAB Automation server:

Create the Visual Basic application. To control
flow between MATLAB and the application, use the MsgBox command.