matlab 如何计算结构体的字节​数,用whos怎么算​出来的不对

S_XY.x = single(0);
S_XY.y = single(0);
whos S_XY
Name Size Bytes Class Attributes S_XY 1x1 344 struct

回答(1 个)

埃博拉酱
埃博拉酱 2024-11-7

0 个投票

在运行这段代码之前,你的S_XY是空的吗?

类别

帮助中心File Exchange 中查找有关 结构体 的更多信息

产品

版本

R2018b

提问:

WFQ
2022-11-23

Community Treasure Hunt

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

Start Hunting!