2.0

2.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 1.11 KB File ID: #10299

Yet Another Whos

by Ed Yu

 

09 Mar 2006 (Updated 09 Mar 2006)

Dumps out variable content in ASCII (works recursively with structures)

| Watch this File

File Information
Description

This utility dumps out variable contents in ASCII and works recursively if the variable is a structure. The output can also be written into an ASCII file.

Example:

yawhos(dis,'dis'); % shows the content of variable dis on the screen
fyawhos(dis, 'dis'); % dumps the content of variable dis into a text file
fyawhos(dis,'dis') % same as above except that it shows the filename created

I was thrown into a Matlab project mid stream to help the project. Unfortunately there are not a whole lot of documentation in the code and the program (very UI intensive) is crashing left and right. I need a script that will allow me to peek into the contents of variable and that is why I wrote these scripts.

You can also use this to dump out variable contents at various stages of program execution and use a file comparison utility to see how the code affects the variable content.

Hope this will be of some help to you. If you found bugs and ways to improve it, let me know and I'll update it.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
10 Mar 2006 Jiro Doke

There is no help text within the m-files (a big problem!). Because you end up calling yawhoss.m in the other 2, you should probably combine and just have one file, with a flag option that you can input to do different things. There's no need to pass in the variable *and* the name of the variable as a string (use INPUTNAME). It doesn't seem to work for cell arrays or custom class objects.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
development environment Ed Yu 22 Oct 2008 08:17:55
whos Ed Yu 22 Oct 2008 08:17:55
dumps Ed Yu 22 Oct 2008 08:17:55
ascii Ed Yu 22 Oct 2008 08:17:55
variable content Ed Yu 22 Oct 2008 08:17:55
utilities Ed Yu 22 Oct 2008 08:17:56
development Ed Yu 22 Oct 2008 08:17:56

Contact us at files@mathworks.com