structobj

Wrapper for the built-in MATLAB struct data structure
57 téléchargements
Mise à jour 13 avr. 2017

This is a class that simply wraps the functionality of the built-in struct datatype, but adds a number of useful features. The most notable feature, is that a structobj is a handle class and is therefore passed by reference to other functions. This allows you to essentially modify the structure in-place.
Instances of this class behave so similarly to the built-in datatype that they can often be fed as inputs to functions that expect structures as inputs.
Additional functionality:
* "Updated" event for when underlying data is changed
* Conversion back to standard structs
* Easily merge structobj instances or structures
* Compatibility with all standard struct functionality (isfield, setfield, getfield, dynamic fieldnames, concatenation, orderfields, fieldnames, tab completion, etc.)

Citation pour cette source

Jonathan Suever (2024). structobj (https://github.com/suever/structobj), GitHub. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Structures dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

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

Version Publié le Notes de version
1.0.0.0

Fixes small bug in getfield
Changed project name

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.