Saving work space with a name from a variable
    조회 수: 2 (최근 30일)
  
       이전 댓글 표시
    
I want to save all the variables of the work space, with the name from variable.
I've tried using
filename = test.value;
save (filename)
댓글 수: 0
채택된 답변
  Image Analyst
      
      
 2016년 10월 18일
        Try this:
filename = sprintf('%s.mat', test.value); % where test.value is a string variable.
save(filename);
댓글 수: 0
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!