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!