Character array in Automation server
PutCharArray([in] BSTR varname, [in] BSTR workspace,
[in] BSTR string)PutCharArray(varname As String, workspace As String,
string As String)PutCharArray(h,'varname','workspace','string')
PutCharArray(h,'varname','
stores the character array in workspace','string')string in the specified
workspace of the server attached to handle h,
assigning to it the variable varname. The
values for workspace are base or global. The function name is case-sensitive.
The character array specified in the string argument can have any
dimensions. However, PutCharArray changes the dimensions to a 1-by-n
column-wise representation, where n is the number of characters in the array. Executing
the following commands in MATLAB® illustrates this behavior:
h = actxserver('matlab.application');
chArr = ['abc'; 'def'; 'ghk']
chArr =
abc
def
ghk
PutCharArray(h,'Foo','base',chArr)
tstArr = GetCharArray(h,'Foo','base')
tstArr =
adgbehcfk Execute | GetCharArray | GetWorkspaceData | PutWorkspaceData