How can I get the subfolders to expand?

조회 수: 1 (최근 30일)
Fatima Mansour
Fatima Mansour 2018년 12월 15일
댓글: Fatima Mansour 2018년 12월 17일
Hello, I am trying to select a folder and set that folder as a root node of a graphical tree so as to be able to open the subfolders of the tree recursively. I am using:
tree= uitree ('v0', 'Root', uigetdir, 'Parent', []);
I am able to select a folder and it is set as the rootnode. When I click on the folder it opens and all the files and subfolders appear, however I am unable to open the subfolders. Whenever I click on the + to the left of the subfolders the + just disappears. Is there a way to solve that?
Any help appreciated. Thank you.
  댓글 수: 2
Image Analyst
Image Analyst 2018년 12월 15일
I don't see +, I see >. And I can see subfolders when I twist the >.
So, what operating system are you using?
Why are you not using uigetdir(), dir(), or fileDatastore() to get your files and folders?
Fatima Mansour
Fatima Mansour 2018년 12월 17일
Thanks for replying. My system is Windows 8. I am actually new to matlab so I am still a beginner.
I am supposed to display the folder that is selected in a grphical tree which is why I used uigetdir as an input argument of uitree. Is there another better way to accomplish that and get the subfolders to open successfully?
Are you sugesting the problem I posted above has to do with the operating system?
Thank you.

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

답변 (0개)

카테고리

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