convert objects to string

版本 1.0.0.0 (2.5 KB) 作者: Daniel Wirtz
Converter function that creates a recursive string representation for MatLab class instances
726.0 次下载
更新时间 2011/11/23

查看许可证

This little helper function allows to obtain a string representation for Matlab class instances.
Main feature is that properties which are also objects are converted recursively.
The recursion level is represented by tab intendation.
The maximum depth is definable, but infinite loops are taken care of automatically.

For more detailed object analysis checkout the UIInspect (#17935) program, and for Java class inspection see checkClass (#26947).
However, if you want a lightweight, recursive string representation this tool might just be a good choice.

引用格式

Daniel Wirtz (2024). convert objects to string (https://www.mathworks.com/matlabcentral/fileexchange/33899-convert-objects-to-string), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2011b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0