External Interfaces Reference Previous page   Next Page
PutWorkspaceData

Store data in server workspace

Syntax

MATLAB Client

Method Signature

Visual Basic Client

Description

PutWorkspaceData stores data in the specified workspace of the server attached to handle h, assigning to it the variable varname. The workspace argument can be either base or global.

Remarks

You can use PutWorkspaceData in place of PutFullMatrix and PutCharArray to pass numeric and character array data respectively to the server.

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

The GetWorkspaceData and PutWorkspaceData functions pass numeric data as a variant data type. These functions are especially useful for VBScript clients as VBScript does not support the safearray data type used by GetFullMatrix and PutFullMatrix.

Examples

Create an array in the client and assign it to variable A in the base workspace of the server:

MATLAB Client

Visual Basic Client

See Also

GetWorkspaceData, PutFullMatrix, GetFullMatrix, PutCharArray, GetCharArray, Execute

See Executing Commands in the MATLAB Server for more examples.


Previous page  PutFullMatrix Quit Next page

© 1994-2005 The MathWorks, Inc.