image thumbnail

Yet Another Whos

version 1.0.0.0 (1.11 KB) by Ed Yu
Dumps out variable content in ASCII (works recursively with structures)

649 Downloads

Updated 04 May 2016

View License

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.

Cite As

Ed Yu (2021). Yet Another Whos (https://www.mathworks.com/matlabcentral/fileexchange/10299-yet-another-whos), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!