How do I save a .mat file and .py file automatically with a 'variable's' value as filename using MATLAB?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(1 个)
ahmed nebli
2018-8-30
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!