removePath
설명
removePath(
는 현재 프로젝트 경로에서 폴더를 제거합니다. 폴더는 프로젝트 내에 있어야 합니다.proj
,folderpath
)
예제
프로젝트 경로에서 폴더 제거하기
Times Table App 프로젝트를 엽니다. currentProject
를 사용하여 현재 불러온 프로젝트에서 프로젝트 객체를 만듭니다.
matlab.project.example.timesTable proj = currentProject;
새 폴더를 만듭니다.
folderpath = fullfile(proj.RootFolder,"folder");
mkdir(filepath);
이 새 폴더를 프로젝트에 추가합니다.
projectFile = addFile(proj,folderpath);
이 새 폴더를 프로젝트 경로에 추가합니다.
folderpath = addPath(proj,folderpath);
프로젝트 경로에서 새 폴더를 제거합니다.
removePath(proj,folderpath)
입력 인수
proj
— 프로젝트
matlab.project.Project
객체
프로젝트로, matlab.project.Project
객체로 지정됩니다. currentProject
를 사용하여 현재 불러온 프로젝트에서 프로젝트 객체를 만듭니다.
folderpath
— 폴더의 경로
문자형 벡터 | string형 스칼라
프로젝트 경로에서 제거할 폴더의 경로로, 문자형 벡터 또는 string형 스칼라로 지정됩니다. 프로젝트 루트 폴더를 기준으로 하여 경로를 지정합니다. 폴더는 루트 폴더 내에 있어야 합니다.
버전 내역
R2019a에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)