Usage case:
I usually save the varible data with comment, for later reference. The comment include which code file generates this data variable, when the data is saved, and other additional information I add.
So this function allow you to input the key-value pair to comment, and it will automatically add the time and generating codefile information.
Usage syntax:
S = matdoc(key1,value1,key2,value2,... )
e.g. S=matdoc('winSize','1s')
S will be a struct containing fields: winSize, codefile, time.
Then, you could save your data with S,
e.g. save(pathVar,'data','S');
Citar como
Meng Wang (2024). matdoc (https://www.mathworks.com/matlabcentral/fileexchange/73714-matdoc), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Programming > Scripts >
Etiquetas
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 |