StructFind

版本 1.0.0.0 (1.8 KB) 作者: Alexander Mering
Find all fields within a struct (array) where the search pattern is found
735.0 次下载
更新时间 2012/2/10

查看许可证

Function to search for entries within a structure. This is done recursively, running through all elements of array-structures.

Input:

search_struct: structure to be searched, could also be array of struct

search_object: string, integer, cell, array or other thing to be searched for

[optional]

structure_name: name of the structure to be searched. Used for full output of the structure content

Output:

FoundFields: Cell array of fields where the search object is found.

引用格式

Alexander Mering (2024). StructFind (https://www.mathworks.com/matlabcentral/fileexchange/35022-structfind), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2011b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Structures 的更多信息
致谢

参考作品: structfind

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0