External Interfaces Reference |
Store character array in server
MATLAB Client
h.PutCharArray('varname', 'workspace
', 'string') PutCharArray(h, 'varname', 'workspace
', 'string') invoke(h, 'PutCharArray
', 'varname', 'workspace
', 'string')
Method Signature
Visual Basic Client
Description
PutCharArray
stores the character array in string
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
The character array specified in the string
argument can have any dimensions.
Server function names, like PutCharArray
, 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.
Examples
Store string str
in the base workspace of the server using PutCharArray
. Retrieve the string with GetCharArray
.
MATLAB Client
h = actxserver('matlab.application'); h.PutCharArray('str', 'base', ... 'He jests at scars that never felt a wound.') S = h.GetCharArray('str', 'base') S = He jests at scars that never felt a wound.
Visual Basic Client
Dim Matlab As Object Dim S As String Matlab = CreateObject("matlab.application") Matlab.PutCharArray("str", "base", "He jests at scars that never felt a wound.") S = Matlab.GetCharArray("str", "base")
See Also
GetCharArray
, PutWorkspaceData
, GetWorkspaceData
, Execute
MinimizeCommandWindow | PutFullMatrix |
© 1994-2005 The MathWorks, Inc.