External Interfaces Reference Previous page   Next Page
PutFullMatrix

Store matrix in server

Syntax

MATLAB Client

Method Signature

Visual Basic Client

Description

PutFullMatrix stores a matrix in the specified workspace of the server attached to handle h, assigning to it the variable varname. Enter the real and imaginary parts of the matrix in the xreal and ximag input arguments. The workspace argument can be either base or global.

Remarks

The matrix specified in the xreal and ximag arguments cannot be scalar, an empty array, or have more than two dimensions.

Server function names, like PutFullMatrix, 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

Example 1 -- Writing to the Base Workspace

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. The real and (optional) imaginary parts are passed in through separate arrays of doubles.

MATLAB Client

Visual Basic Client

Example 2 -- Writing to the Global Workspace

Write a matrix to the global workspace of the server and then examine the server's global workspace from the client.

MATLAB Client

Visual Basic Client

See Also

GetFullMatrix, PutWorkspaceData, GetWorkspaceData, Execute


Previous page  PutCharArray PutWorkspaceData Next page

© 1994-2005 The MathWorks, Inc.