필터 지우기
필터 지우기

dir or ls are not working properly

조회 수: 6 (최근 30일)
JFz
JFz 2019년 4월 3일
편집: Adam Danz 2019년 4월 3일
Hi,
I have a remote folder and there are many .mat files in it. I can see those files in windows explorer.
But in matlab command window, can cd into the folder by:
>cd rfolder
but dir or ls only show ". .." not those .mat files at all. I used to be able to ls or dir all the file names.
Why? Should I somehow add some path into matlab?
Thanks for any help.
  댓글 수: 12
JFz
JFz 2019년 4월 3일
How to accept the answer here? I am not seeing the accept button.
Adam Danz
Adam Danz 2019년 4월 3일
I moved my comment to the answers section but only accept it if this solved your problem. There were lots of other great comments here that should be considered during troubleshooting.

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

채택된 답변

Adam Danz
Adam Danz 2019년 4월 3일
편집: Adam Danz 2019년 4월 3일
You mentioned it is a remote folder. Often times changes made to remote folders after matlab has started wont' be recognized by matlab. The fix for this problem is to rehash path
rehash path
For more info:

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by