필터 지우기
필터 지우기

how can I change directory of matlabfunction to a writable directory preferably outside of MATLAB installation area?

조회 수: 193 (최근 30일)
when I use matlab function error occur that [ The current directory is c:\program files\matlab\r2011a\matlab\bin, which is reserved for MATLAB files.
Please change your current directory to a writable directory preferably outside of MATLAB installation area.] from where can I change it?
  댓글 수: 4

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

채택된 답변

Jan
Jan 2013년 4월 5일
cd(tempdir)
or
cd(userpath)
  댓글 수: 17
Avdhesh Kumar
Avdhesh Kumar 2021년 5월 17일
yes man!
thank you so much.I was having error while simulink onramp and changing directory wasn't an option.

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

추가 답변 (2개)

Minh Ly Duc
Minh Ly Duc 2022년 3월 20일
Dear,
Step 1: At the matlab code editor screen (Editor menu)
Step 2: At the location of the brown folder: The link showing the location of the matlab file is generating an error
Step 3: Delete the link above and select any location in your computer's drive
Step 4: You create any empty folder
Step 5: Run
Good luck!

Hoang Mai
Hoang Mai 2019년 3월 24일
I can't repair error. I have created command into prompt as following:
c:>\cd Users\PC\Documents\MATLAB
So the result back yet:
The current directory 'c:\program files\matlab\r2016a\bin' is reserved for MATLAB files.
Please change your current directory to a writeable directory outside of the MATLAB installation area.
Component: Stateflow | Category: General error
Please change your current directory to a writeable directory outside of the MATLAB installation area.
Component: Simulink | Category: Model error
Can you help me!
  댓글 수: 1
Jan
Jan 2019년 3월 25일
In which "prompt" do you enter this? In the command window of Matlab or of the operating system? What is the purpose of "c:>"? In the command shell of the operating system this tries to create the file 'Users\PC\Documents\MATLAB' inside the current directory and to write the output of 'c:' to it, which is empty. I guess you want to do:
cd C:\Users\PC\Documents\MATLAB

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by