NestedStruct - Represent a nested struct
バージョン 1.0.2 (2.49 KB) 作成者:
Eivind Hennestad
This is a class that will let you display values of all substructs of a struct.
Example:
nestedStruct = struct(...
'Subject', struct('Age', 25, 'Species', 'Mouse'), ...
'Experiment', struct('Date', '2023-01-01', 'Location', 'Lab') );
s = NestedStruct(nestedStruct);
>> s
s =
NestedStruct with properties:
Subject:
Age: 25
Species: 'Mouse'
Experiment:
Date: '2023-01-01'
Location: 'Lab'
Ideas:
- Better display for struct with mix of substructs and values which are not struct
- Support for multiple nesting levels (if possible?)
引用
Eivind Hennestad (2026). NestedStruct - Represent a nested struct (https://jp.mathworks.com/matlabcentral/fileexchange/156199-nestedstruct-represent-a-nested-struct), MATLAB Central File Exchange. 取得日: .
MATLAB リリースの互換性
作成:
R2023b
R2021b 以降のリリースと互換性あり
