[v,names] = struct2vec(S)
Converts field values in S to a vector of values. Will also return a cell array of the field names. If anything but a structure is passed in, the output will be the same as the input.
Parameters |
Description |
S [struct] |
Input structure |
Return Values |
Description |
v [vector] |
Vector of field values in S |
name [cell] |
Field names in S |
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|