File Exchange

image thumbnail

convert objects to string

version 1.0 (2.48 KB) by

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

1 Download

Updated

View License

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.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.13 (R2011b)

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

» Watch video