getnestedfield

版本 1.1.0.0 (2.9 KB) 作者: Bob Spunt
Find a (potentially nested) field in a structure and return its contents
101.0 次下载
更新时间 2015/8/17

Use a regular expression to find a (potentially nested) field in a structure and return its contents.
USAGE: F = getnestedfield(S, EXP)
INPUTS
S: The struct to search
EXP: Pattern used to find field (passed to REGEXP)

OUTPUT
F: Field contents. If no fields are found, is an empty array. If multiple fields found, is a N x 2 cell array where N is the number of matching fields, first column contains full locations of each match, and second column contains their values (this is raw output from NSTRUCT2CELL, see CREDIT below).

引用格式

Bob Spunt (2024). getnestedfield (https://github.com/spunt/getnestedfield), GitHub. 检索来源 .

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

参考作品: NSTRUCT2CELL

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.1.0.0

Stunning image added.

1.0.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库