External Interfaces Reference Previous page   Next Page
GetFullMatrix

Get matrix from server

Syntax

MATLAB Client

Method Signature

Visual Basic Client

Description

GetFullMatrix gets the matrix stored in the variable varname from the specified workspace of the server attached to handle h and returns the real part in xreal and the imaginary part in ximag. The workspace argument can be either base or global.

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

Remarks

If you want output from GetFullMatrix to be displayed at the client window, you must specify one or both output variables (e.g., xreal and/or ximag).

Server function names, like GetFullMatrix, are case sensitive when using the first syntax shown.

There is no difference in the operation of the three syntaxes shown above for the MATLAB client.

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 safearray, which is not supported by VBScript.

Examples

Assign a 5-by-5 real matrix to the variable M in the base workspace of the server, and then read it back with GetFullMatrix.

MATLAB Client

Visual Basic Client

See Also

PutFullMatrix, GetWorkspaceData, PutWorkspaceData, GetVariable, Execute


Previous page  GetCharArray GetVariable Next page

© 1994-2005 The MathWorks, Inc.