Virtual Reality Toolbox | ![]() ![]() |
Get a field value of a vrnode object
Syntax
Arguments
vrnode_object |
Name of a vrnode object representing the node to be queried. |
fieldname |
Name of the vrnode object field whose values you want to query. |
Description
getfield(
vrnode_object
)
displays all the field names and their current values for the vrnode object.
x = getfield(
vrnode_object
)
returns a structure array whose fields are the fields of the vrnode object. Each field contains the values of a vrnode object field.
x = getfield(
vrnode_object
,'
fieldname
')
returns the values in the vrnode object's specified field. If fieldname
is a 1-by-N or N-by-1 cell array of strings containing field names, getfield
returns a 1-by-N or N-by-1 cell array of field values.
See Also
vrnode/get
, vrnode/set
, vrnode/setfield
, vrnode
![]() | vrnode/get | vrnode/isvalid | ![]() |