kpfield( S, fields )
Version 1.0.0.0 (924 octets) par
Michael Sansoni
Keep only specified fields in a structure. Inverse of rmfield.
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 LinuxCatégories
En savoir plus sur Structures dans Help Center et MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
