필터 지우기
필터 지우기

error when im trying to save

조회 수: 18 (최근 30일)
UPT
UPT 2012년 6월 3일
Hi all.im trying to make a load short forecasting but in one of the steps i cant go on because of this error: *??? Error using ==> save Unable to write file Data\testSet: No such file or directory.*..could you help me?thanks
  댓글 수: 5
Image Analyst
Image Analyst 2012년 6월 3일
Your code would be more robust if you had a special folder for your data files and didn't mix your data files in with your m-files, fig files, and other files. Learn how to use uigetdir(), uigetfile(), fullfile(), exist(), and mkdir().
UPT
UPT 2012년 6월 3일
thanks for your help,especially you walter roberson..

댓글을 달려면 로그인하십시오.

채택된 답변

Thomas
Thomas 2012년 6월 3일
try
save('testSet.mat','testDates', 'testX' , 'testY') %to save it in the current directory
or create a directory called Data and use
save('Data\testSet.mat','testDates', 'testX' , 'testY') % to save in Data dir
or just add the follwing in a line above the save command
mkdir('Data'); % this should create the data directory

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by