Yet Another Whos

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

You are now following this Submission

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 (2026). Yet Another Whos (https://www.mathworks.com/matlabcentral/fileexchange/10299-yet-another-whos), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

BSD License