quickly put/update all variables into/in a structure
default way to do this task is tedious and inflexible
e.g.: s = struct('a',{},'b',{},'c',{})
this simple function can make it better
e.g. s = updateStruct(s, a,b,c)
This function can be used to add/update the existed fields of a structure
OR
directly generate a new structure with given variables as fields.
e.g. s1 = updateStruct( [ ], a,b,c)
Citar como
Zhuoqun Zhang (2024). quickly put/update all variables into/in a structure (https://www.mathworks.com/matlabcentral/fileexchange/77738-quickly-put-update-all-variables-into-in-a-structure), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |