How do I save a .mat file and .py file automatically with a 'variable's' value as filename using MATLAB?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sachin k p
am 30 Aug. 2018
Beantwortet: Stephen23
am 30 Aug. 2018
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
ahmed nebli
am 30 Aug. 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 Kommentare
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!