Main Content
GetVariable
Data from variable in Automation server workspace
Synopsis
IDL Method Signature
HRESULT GetVariable([in] BSTR varname, [in] BSTR workspace, [out, retval] VARIANT* pdata)
Microsoft Visual Basic Client
GetVariable(varname As String, workspace As String) As Object
MATLAB Client
D = GetVariable(h,'varname','
workspace
')
Description
D = GetVariable(h,'varname','
gets data stored in variable workspace
')varname
from the specified
workspace
of the server attached to handle h
and
returns it in output argument D
. The
values for workspace
are base
or global
.
Do not use GetVariable
on sparse arrays,
structures, or function handles.
If your scripting language requires the explicit return of a result, then use the
GetVariable
function in place of GetWorkspaceData
,
GetFullMatrix
, or GetCharArray
.
Examples
Version History
Introduced before R2006a