Explode a structure

Explode a multi-level structure to find the lowest level field.

您现在正在关注此提交

mystruc = expstruc(bigstructure);

Recursively expands the structure 'bigstructure' until data is found.

Returns a structure 'mystruc', containing two fields
1. 'name'; cell array of strings of the full name of the field
2. 'type' ; cell array of strings of the type of the field (double, logical, whatever)

Intended to be used with 'eval' for structure concatenation (code to follow).

引用格式

Andy Clifton (2026). Explode a structure (https://ww2.mathworks.cn/matlabcentral/fileexchange/28946-explode-a-structure), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Tables 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.3.0.0

Removed the need for a global variable, using the method suggested by Robert Cumming.

1.0.0.0