cell2struct
Creates a struct from a cell.
Syntax
- st = cell2struct(ce, fields)
- st = cell2struct(ce, fields, dim)
Input argument
- ce - a cell.
- fields - a cell of strings.
- dim - dimension along cell is converted.
Output argument
- st - a struct array.
Description
st = cell2struct(ce, fields) creates a struct from a cell.
Example
ce = {85, 50, 68; 'Pierre', 'Anna', 'Roberto'}
fields = {'Height','Name'}
A = cell2struct (ce, fields, 1)
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET