Find_Variable(var_t​o_search, value_to_find)

Version 1.0.0.0 (4.15 KB) by Gordon
Looks through a structure or the base workspace to find variables equal to a value you specify
68 Downloads
Updated 1 Sep 2015

View License

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
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0