dash.stateVectorVariable.serialize

Convert dash.stateVectorVariable vector to a struct that supports fast saving/loading


Syntax



Description

s = obj.serialize

Serializes a vector of stateVectorVariable objects. Converts nested fields to serial arrays. Organizes serial arrays and deserialization parameters in a struct. The struct can be provide to the deserialize method to rebuild the original vector of stateVectorVariable objects.

In the serialized structure, dimension lists, logical indicators, sizes, and metadata conversion function handles are converted to comma delimited string vectors. (Commas delimit entries for different dimensions). Indices, and mean weights are converted to column vectors, and the numbers of indices in each dimension are stored as comma delimited string vectors. Metadata and conversion function args are stored as cell columns vectors with minimal elements, along with the variable and dimension index associated with each cell element.


Output Arguments

s

scalar struct
The serialized state vector variable.