PutCharArray
Character array in Automation server
Synopsis
IDL Method Signature
PutCharArray([in] BSTR varname, [in] BSTR workspace, [in] BSTR string)
MicrosoftVisual BasicClient
PutCharArray(varname As String, workspace As String, string As String)
MATLABClient
PutCharArray(h,'varname','
workspace
','string')
Description
PutCharArray(h,'varname','
stores the character array inworkspace
','string')string
in the specifiedworkspace
of the server attached to handleh
, assigning to it the variablevarname
.The values forworkspace
arebase
orglobal
.The function name is case-sensitive.
Examples
Tips
The character array specified in the
string
argument can have any dimensions. However,PutCharArray
1)×(n列代表的尺寸变化resentation, 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