getnestedfield

Versión 1.1.0.0 (2,91 KB) por Bob Spunt
Find a (potentially nested) field in a structure and return its contents
101 descargas
Actualizado 17 ago 2015

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).

Citar como

Bob Spunt (2024). getnestedfield (https://github.com/spunt/getnestedfield), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2015a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Structures en Help Center y MATLAB Answers.
Agradecimientos

Inspirado por: NSTRUCT2CELL

Community Treasure Hunt

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

Start Hunting!

No se pueden descargar versiones que utilicen la rama predeterminada de GitHub

Versión Publicado Notas de la versión
1.1.0.0

Stunning image added.

1.0.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.