How do I save a .mat file and .py file automatically with a 'variable's' value as filename using MATLAB?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Eg: If I have a 'gradient'=20 and 'number' = 10. How to save a .mat file and .py file with a filename 20_10.
0 Commenti
Risposta accettata
Più risposte (1)
ahmed nebli
il 30 Ago 2018
you can use: save('filename.mat','X'); %where filename is the name of file and X is the variable u need to save & same for the .py file
0 Commenti
Vedere anche
Categorie
Scopri di più su File Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!