MATLAB Answers

dir or ls are not working properly

18 views (last 30 days)
JFz
JFz on 3 Apr 2019
Edited: Adam Danz on 3 Apr 2019
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 Comments

Show 9 older comments
JFz
JFz on 3 Apr 2019
How to accept the answer here? I am not seeing the accept button.
Adam Danz
Adam Danz on 3 Apr 2019
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.

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 3 Apr 2019
Edited: Adam Danz on 3 Apr 2019
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 Comments

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2018b

Translated by