matlab中 提示文字,matlab以清晰的方式显示结构的内容

struct2table

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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值