Moving from C drive to D drive

조회 수: 87 (최근 30일)
Ahmed Abdulla
Ahmed Abdulla 2019년 7월 3일
답변: Abhisek Pradhan 2019년 7월 17일
Ive been using Matlab for sometime know and all my files were saved in my documents (C Drive) and now this drive is full and i would like to move everything to the D Drive so i thought its as simple as copy and paste but now my files dont run they ask me to revert back to file in the C Drive.
  댓글 수: 5
Star Strider
Star Strider 2019년 7월 3일
Did you add your D:\ drive and paths to your MATLAB search path? (See What Is the MATLAB Search Path? for details.)
Walter Roberson
Walter Roberson 2019년 7월 3일
If you had a file open in the editor and you move the file to D: then MATLAB is not going to know that the file is moved, so if you try to edit or save or run the file then MATLAB could have problems. The work-around is to close the file in the editor and re-open it from the D: location.

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

채택된 답변

Abhisek Pradhan
Abhisek Pradhan 2019년 7월 17일
MATLAB uses the search path to locate files. Now folders/files have been moved from C drive to D drive, but this new path is not on MATLAB search path (path function displays MATLAB search path).
Use Set Pathdialog box to add files/folders to search path or use MATLAB > Current Folder Browser to add files/folders to path.
Refer path and What is the MATLAB search path for more information.

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by