KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
object2str.m File Reference

object2str: Generic matlab object to string converter. More...

Go to the source code of this file.

Functions

function str = object2str (handle obj,integer maxdepth)
 object2str: Generic matlab object to string converter. More...
 

Detailed Description

object2str: Generic matlab object to string converter.

Definition in file object2str.m.

Function Documentation

function str = object2str ( handle  obj,
integer  maxdepth 
)

object2str: Generic matlab object to string converter.

This small function recursively displays the complete hierarchy of any object and nested objects therein as a string, intended by tabs equal to the sublevel and sorted alphabetically.

See Also
http://www.mathworks.com/matlabcentral/fileexchange/26947 http://www.mathworks.com/matlabcentral/fileexchange/17935
Author
Daniel Wirtz
Date
2011-11-23
Change in 0.6:
(Daniel Wirtz, 2011-11-23) Export as standalone object2str function.
Change in 0.3:
(Daniel Wirtz, 2011-04-05) The order of the properties listed is now alphabetically, fixed no-tabs-bug.

Copyright (c) 2011, Daniel Wirtz All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted only in compliance with the BSD license, see http://www.opensource.org/licenses/bsd-license.php

Todo:
enable argument that omits any properties of a given name
Parameters
objThe object to convert to a string
maxdepthThe maximum recursion depth. Default: Inf
Return values
strThe string representation of the object's state.
Required fields of obj:

Definition at line 17 of file object2str.m.

Referenced by approx.algorithms.ABase.getApproximationSummary().

Here is the caller graph for this function: