Automated process to save outputs into various MAT files
1 view (last 30 days)
Show older comments
I have numerous covariance matrixes as output from deep neural network and that needs to be stored into various MAT files appending the date and time to the filename. I want to automate the process to save these outputs into various MAT files in a folder.
0 Comments
Answers (1)
Walter Roberson
on 22 Feb 2020
char(datetime('now', 'format', FORMAT_YOU_WANT))
strcat that with the base file name, fullfile() the directory into place, use that as the first parameter to save() with the remaining parameters being the names of the variables to save, expressed as character vectors.
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!