WHO for a given CLASS
Version 1.1.0.0 (1.28 KB) by
Yvan Lengwiler
Displays a list of variables in the base workspace of a given class.
WHOCLASS filters out the names of the variables in the base workspace that belong to a particular class, or list of classes, as selected by the user. The program is very simple, just three lines, essentially, but I have found it useful occasionally, so why not share it?
Examples:
whoclass('double')
whoclass('logical','struct')
v = whoclass('logical');
Please comment if you like it.
Cite As
Yvan Lengwiler (2024). WHO for a given CLASS (https://www.mathworks.com/matlabcentral/fileexchange/27964-who-for-a-given-class), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Whos in Help Center and MATLAB Answers
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.