STRUCT2STR

Converts a struct intoa char string and, if needed, display the string. The function allows exportin

您现在正在关注此提交

编者注: This file was selected as MATLAB Central Pick of the Week

STRUCT2STR - Converts a struct into a char string and optionally display its pairs of field names and field values in a list box.
The rows of the list box visualizing the fields can be individually selected, and the corresponding fields can be copied to the clipboard.
In this way, this function can be used to paste significant fields of a struct to a plain text file, for documentation purposes.
By displaying the obtained char string we get a similar output as the one generated by the Matlab built-in function DISP, when called on
the original struct.

引用格式

Marco Cococcioni (2026). STRUCT2STR (https://ww2.mathworks.cn/matlabcentral/fileexchange/15017-struct2str), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: struct2str recursive

类别

Help CenterMATLAB Answers 中查找有关 Data Type Conversion 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0