MGH_STRUCT_EVAL
Name
MGH_STRUCT_EVAL
Purpose
Return data for a named tag in a structure
Calling Sequence
result = mgh_struct_eval(struct, tag)
Positional Parameters
struct (input, structure scalar)
The input structure.
tag (input, string scalar)
The name of a tag in the input structure. An error is raised if
the tag is not found.
Return Value
The function returns the data associated with the tag. So
result = mgh_eval(my_struct, 'foo')
is equivalent to
result = my_struct.foo
###########################################################################
Copyright (c) 2010 NIWA:
http://www.niwa.co.nz/
Licensed under the MIT open source license:
http://www.opensource.org/licenses/mit-license.php
###########################################################################
Modification History
Mark Hadfield, 2010-05:
Written.