gridfile.addDimension
Add a new dimension to a .grid file
Syntax
Description
Adds a new dimension and associated metadata to a gridfile. The new dimension is treated as a trailing singleton dimensions in the existing data grid. Consequently, the metadata for the new dimension must be a row vector or scalar.
Input Arguments
dimension
string scalar
The name of a new dimension to add to the gridfile. Must be a recognized grid dimension. (See gridMetadata.dimensions for a list of recognzied dimensions).
metadata
row vector, numeric | logical | char | string | cellstring | datetime
metadata values for the new, singleton dimension. Cellstring values will be converted to string.