saving all of workspace in a specified folder
조회 수: 12 (최근 30일)
이전 댓글 표시
채택된 답변
TAB
2011년 9월 17일
Saving to path
save('path\myfile.mat');
Example: save('D:\WORKING\Myfile.mat');
Loading from a path
load('path\myfile.mat');
Example: load('D:\WORKING\Myfile.mat');
댓글 수: 6
Emma_Mc
2016년 3월 3일
Include the location in the string for your variable name.
For example, you want to save a and b to the mat file 'variable_a_1_variable_b_2' in a folder 'save_test'.
a=1;
b=2;
variable_name=['D:\save_here\variable_a_',num2str(a),'variable_b_',num2str(b),'.mat'];
save(variable_name,'a','b');
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!