flattern_struct(inp​ut, name)

flattern a struct with unknown numbers of nested structs

You are now following this Submission

for example:
input.field1 = struct()
input.field1.field2 = struct()
...
flattern the struct so it only has one layer, then you can convert it to cell/table etc.

Cite As

uathena (2026). flattern_struct(input, name) (https://uk.mathworks.com/matlabcentral/fileexchange/64057-flattern_struct-input-name), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

fix a bug with string compare

1.1.0.0

add comments about input

1.0.0.0