struct2table

バージョン 1.0.0.0 (2.96 KB) 作成者: Karl
displays a struct's contents in a clear way...
ダウンロード: 1.6K
更新 2012/4/16

ライセンスの表示

Without losing too many words, this has been quite useful for me. Maybe you can also take advantage of this little tool... Anyway, here's a short description:

STRUCT2TABLE(S) displays a table with the field names in the headline
and one row for each struct element:

# [field name 1] [field name 2] ...
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
1 S(1).([field name 1]) S(1).([field name 2]) ...
2 S(2).([field name 1]) S(2).([field name 2]) ...

STRUCT2TABLE(S, F) displays only the fields with the names that are
contained in the cell-array F.

If the elements of F itself are also two-element cell arrays (e.g.
F{1} = {'field1', 'round'}) individual display modes for each
field's values can be set. Until now, two modes have been
implemented, both only effective with numbers:

'normal' - simply the value of the scalar
'round' - the values are rounded before being displayed

(also see "user parameters" below.)

STRUCT2TABLE(H, S, F) displays a headline string H before creating the
table.

USER PARAMETERS Some aspects of the layout of the table can be set
globally. In detail, the parameters are:

N_decimal_digits - used to globally set the number of decimal digits
displayed
(applies only to numbers)
str_disp_true - the string used to indicate locigal true
(applies only to logicals)
str_disp_false - the string used to indicate logical false
(applies only to logicals)

引用

Karl (2026). struct2table (https://jp.mathworks.com/matlabcentral/fileexchange/36214-struct2table), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2009b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersStructures についてさらに検索
バージョン 公開済み リリース ノート
1.0.0.0