Loads Preferences File

Versión 1.0.0.0 (1,62 KB) por Tiago
This function loads a .mat file containing a structure and appends all the loaded fields and respect
217 descargas
Actualizado 10 nov 2011

Ver licencia

This function loads a .mat file containing a structure and appends all the loaded fields and respective values to an older structure.
Any new fields are simply added.

This is very useful when working with preferences files, where you may create a structure with the default values and then load the user preferences from previously saved file.
If for instance, the user file is older and doesn't contain newer fields, the default ones with fill the spots.

PREFS_NEW = LOAD_PREF_FILE(PREFS_DEFAULT, PREFS_FILE) , PREFS_DEFAULT and PREFS_NEW are structure type. PREFS_FILE is a string containing the file name to be loaded.

Citar como

Tiago (2024). Loads Preferences File (https://www.mathworks.com/matlabcentral/fileexchange/33715-loads-preferences-file), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2011a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Structures en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0