View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
convert objects to string

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 2.48 KB File ID: #33899 Version: 1.0

convert objects to string

by

Daniel Wirtz (view profile)

 

Converter function that creates a recursive string representation for MatLab class instances

| Watch this File

File Information
Description

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.

Acknowledgements

Uiinspect Display Methods, Properties & Callbacks Of An Object and Check Class Inspect A Java/Matlab Class Object/Name inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us