Yet Another Whos
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 (2024). Yet Another Whos (https://www.mathworks.com/matlabcentral/fileexchange/10299-yet-another-whos), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Programming > Files and Folders > Search Path >
- MATLAB > Language Fundamentals > Data Types > Data Type Identification > Whos >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | BSD License |