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.
引用格式
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. 检索时间: .
MATLAB 版本兼容性
创建方式
R2012b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Characters and Strings 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |