How do I dynamically generate a file name for save in MATLAB
이전 댓글 표시
I do not know the file name at the time of coding, only at run time.
채택된 답변
추가 답변 (2개)
Anish
2011년 1월 18일
You can use the function form of the SAVE command:
i = 10;
fname = sprintf('myfile%d.mat', i);
save(fname)
For more help, see:
Neha Singh
2017년 4월 20일
0 개 추천
How it is possible to save without loop variable? Suppose I took 'x' variable and I want to append at the end of file while saving i.e filex. This show result into file1, file9 somthing like this.
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!