필터 지우기
필터 지우기

Changing directories after a function is ran

조회 수: 2 (최근 30일)
HC
HC 2019년 8월 7일
답변: the cyclist 2019년 8월 7일
Hi all,
I am running my image processing code that registers each image on a directory that contains a set of images. After a certain amount of iterations are complete for each image (when the function ends), I want the user to be able to choose and change the directory and run the function again without having to stop running the function. I want it to be continuous. Any ideas?
Thank you!

답변 (1개)

the cyclist
the cyclist 2019년 8월 7일
Depending on exactly how you want to do it, I expect the following command will be useful:
  • ls -- to see the folder contents
  • input -- to ask the user what directory they want
  • cd -- to go to the desired directory
There are other functions that get similar information. You could also build a full-blown GUI, but maybe these simple functions will get you started?

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by