getnestedfield

Find a (potentially nested) field in a structure and return its contents

https://github.com/spunt/getnestedfield

Vous suivez désormais cette soumission

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

Citation pour cette source

Bob Spunt (2026). getnestedfield (https://github.com/spunt/getnestedfield), GitHub. Extrait(e) le .

Remerciements

Inspiré par : NSTRUCT2CELL

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux

Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées

Version Publié le Notes de version Action
1.1.0.0

Stunning image added.

1.0.0.0

Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.
Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.