gridMetadata.editAttributes

Replace non-dimensional attributes with new values


Syntax



Description

obj = obj.editAttributes(fields, values)

Replaces the values of the named attribute fields with new values.

obj = obj.editAttributes(field1, value1, field2, value2, .., fieldN, valueN)

Uses a Name,Value syntax to edit attributes.


Input Arguments

fields

string vector [nFields]
A list of fields to edit to the attributes structure.

values

cell vector [nFields]
The new values associated with each edited attributes field.

fieldN

string scalar
The name of a field in the current gridMetadata object’s attributes structure.

valueN

any data type
The new value to use for the attributes field.

Output Arguments

obj

gridMetadata object
The updated gridMetadata object