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://jp.mathworks.com/matlabcentral/fileexchange/28946-explode-a-structure), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersTables についてさらに検索

一般的な情報

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