Find_Variable(var_to_search, value_to_find)
Looks through either a structure you pass to it, or the base workspace, to find all variables and fields matching a value you specify. The value can be a number, or a regular expression to match text. Will recursively loop through all structure fields. Useful for when you have a lot of variables in a structure or in your workspace and you want to find which ones are equal to a certain number, or have a certain text in a deeply buried field.
Cite As
Gordon (2024). Find_Variable(var_to_search, value_to_find) (https://www.mathworks.com/matlabcentral/fileexchange/52794-find_variable-var_to_search-value_to_find), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
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 |