GetVariable
自动化的变量数据服务器的工作区
Synopsis
IDL Method Signature
HRESULT GetVariable([in] BSTR varname, [in] BSTR workspace, [out, retval] VARIANT* pdata)
MicrosoftVisual BasicClient
GetVariable(varname As String, workspace As String) As Object
MATLABClient
D = GetVariable(h,'varname','
workspace
')
Description
D = GetVariable(h,'varname','
gets data stored in variableworkspace
')varname
from the specifiedworkspace
of the server attached to handleh
and returns it in output argumentD
.The values forworkspace
arebase
orglobal
.
DonotuseGetVariable
on sparse arrays, structures, or function handles.
If your scripting language requires the explicit return of a result, then use theGetVariable
function in place ofGetWorkspaceData
,GetFullMatrix
, orGetCharArray
.