kpfield( S, fields )

Version 1.0.0.0 (924 octets) par Michael Sansoni
Keep only specified fields in a structure. Inverse of rmfield.
77 téléchargements
Mise à jour 6 avr. 2016

Afficher la licence

Function to keep only the specified fields in a structure. Quicker than using rmfield as structure is converted to a cell array before fieldnames are compared logically before converting back to a structure. Much quicker for large structures.

Citation pour cette source

Michael Sansoni (2025). kpfield( S, fields ) (https://fr.mathworks.com/matlabcentral/fileexchange/56413-kpfield-s-fields), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2014b
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!
Version Publié le Notes de version
1.0.0.0