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!