Data from Automation server workspace
HRESULT GetWorkspaceData([in] BSTR varname, [in] BSTR workspace,
[out] VARIANT* pdata)
GetWorkspaceData(varname As String, workspace As String) As Object
D = GetWorkspaceData(h,'varname','
workspace
')
D = GetWorkspaceData(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
. Use this syntax when writing VBA code.
Use GetWorkspaceData
instead of
GetFullMatrix
and GetCharArray
to get
numeric and character array data, respectively. Do not use
GetWorkspaceData
on sparse arrays, structures, or function
handles.
For VBScript clients, use the GetWorkspaceData
and PutWorkspaceData
functions
to pass numeric data to and from the MATLAB® workspace. These
functions use the variant
data type instead of
the safearray
data type used by GetFullMatrix
and PutFullMatrix
.
VBScript does not support safearray
.
Execute
| GetCharArray
| GetFullMatrix
| GetVariable
| PutWorkspaceData