Save command with full directory MATLAB 2012b
조회 수: 4 (최근 30일)
이전 댓글 표시
An error seems to occur with the save command when using it when choosing a filename with the full directory attached. Has this always happened or is this a new problem with MATLAB 2012b?
e.g. The following works fine:
save Test.mat VarA VarB
The following recieves an error:
save c:\Documents and Settings\TheUserName\Desktop\MyFolder\Test.mat VarA VarB
The error recieved is:
Error using save
Variable ' and' not found
댓글 수: 0
답변 (1개)
Jan
2012년 10월 31일
편집: Jan
2012년 10월 31일
The non-functional form of save causes troubles again and again. So better use the functional form:
save('c:\Documents and Settings\TheUserName\Desktop\MyFolder\Test.mat', ...
'VarA', 'VarB');
Lucas' version works in all Matlab version I know, but the smart conversion of the arguments of the non-functional form is not documented and changes between Matlab versions. Sometimes numbers are assumed to be strings, sometimes they are numbers, etc.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!