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.
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: R14SP3