MATLAB: Matlab loses sight of directories and files

Hi party people,
Long time lurker, first time to post. Thanks for all the helpful comments you provide!
I'm running into a crazy issue with a 2016b install where MATLAB loses track of the directory environment. For example: which('C:\') returns 'C:\' not found. Files in MATLAB's default path (e.g. "which('chirp')") are found, but their directories are not found (e.g. "which(fileparts(which('chirp')))"). Files I add to the path are not found.
The problem resolves after a restart. Sometimes I get an error message saying something like "A low level graphics problem caused a crash… setting graphics to 'opengl software'."
Any thoughts on what could be happening?
I can't actually believe its a graphics issue… but the problem does seem to happen after performing some plotting function…. The graphics cards did give me a headache to install until I disabled vga display capabilities in the bios/motherboard (NVIDIA GeForce Titan Pascal, drivers version 378.66). But why would any of that affect the MATLAB directory structure?
Thanks for your consideration
-Jacob

Best Answer

c:\ is not a filename, function, or variable so of course it says not found. If you want to use dir() instead, you can do that. Otherwise look at the help for which and see what values are valid for "item".
Related Question