MATLAB: Dir or ls are not working properly


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.

Best Answer

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: