namedargs2cell
Converts a struct containing name-value pairs to a cell.
Syntax
- ce = namedargs2cell(st)
Input argument
- st - a scalar structure.
Output argument
- ce - a cell.
Description
ce = namedargs2cell(st) returns an cell containing name-value pairs.
Example
S = struct();
S.CharacterEncoding = 'auto';
S.Timeout = 5;
S.Username = "";
S.logical = false;
R = namedargs2cell(S)
See also
struct2cell, struct, fieldnames.
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET