Save variable to .mat file
Mostra commenti meno recenti
I would like to kindly ask you for the help with dynamical naming of saved variables in MATLAB.
I have the variable:
Name=’image_xx’
My script generates a variable: waviness
My problem is that I need to save the variable waviness to the .mat file with the name:
image_xx_waviness via the command save(). Please, can you help me how to do that.
Many thanks for any help.
Risposte (1)
David Fletcher
il 6 Apr 2021
Modificato: David Fletcher
il 6 Apr 2021
try this:
save(strcat(Name,'_waviness'),'waviness')
1 Commento
Jan Kubicek
il 13 Apr 2021
Categorie
Scopri di più su MATLAB Report Generator in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!