필터 지우기
필터 지우기

m file to instead save button in set path dialog

조회 수: 1 (최근 30일)
kei hin
kei hin 2019년 1월 17일
댓글: Walter Roberson 2019년 1월 23일
Go the Home tab and, in the Environment section, click Set Path. Then we will open the Set Path dialog box, there is a 'Save' button, now I want to use a M-file to achieve the 'save' button's function, how to do this? Use 'Savepath()'? I do not want to change any path, no add, no move, no remove, just save. Like I open this dialog, do nothing, just click 'save' button and close the dialog, now I want to use M-file to do this. just save. how? thanks~
set_path.png

채택된 답변

Walter Roberson
Walter Roberson 2019년 1월 17일
matlabpath( strjoin(Cell_Array_Of_Character_Vectors, pathsep) )
  댓글 수: 17
kei hin
kei hin 2019년 1월 23일
aha...OK...Let's back to the question, I can use 'savepath' to instead click save button in pathtool dialog right? So can you edit your first answer, and I will accept it.
Walter Roberson
Walter Roberson 2019년 1월 23일
If you just want to put a path into effect then the code from https://www.mathworks.com/matlabcentral/answers/440143-m-file-to-instead-save-button-in-set-path-dialog#comment_661311 does that without using savepath() .

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2011b

Community Treasure Hunt

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

Start Hunting!

Translated by