Get fieldnames from array of structs and convert to table

Convert nested array of structs to flatten struct or table. Filter all variable by using the class, type or level
111 download
Aggiornato 8 giu 2020

Visualizza la licenza

[fields,tab] = fieldnamesAll(s,varargin)
FIELDNAMESALL returns all field names from a deeply nested array of "structs"
This function is an improved version of MATLAB built-in function fieldnames

s1 = flattenStruct(s,varargin)
FLATTENSTRUCT Convert nested struct to flatten struct
The function also works with array of structs and deeply nested structs.

tab = struct2tableAll(s,varargin)
STRUCT2TABLEALL Convert array of structs and array of nested structs to table
This function is an improved version of MATLAB built-in function struct2table

Cita come

Markus Uhlending (2024). Get fieldnames from array of structs and convert to table (https://www.mathworks.com/matlabcentral/fileexchange/76718-get-fieldnames-from-array-of-structs-and-convert-to-table), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2020a
Compatibile con R2019b e release successive
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.1

Change Description

1.0.0