MATLAB: The directory name is invalid

- non-functioning desktop icon -"c:\program files\matlab\r2016a\bin\matlab.exe the directory name is invalid. "solution

When i open Matlab 2016Ra from desktop icon it shows: "C:\Program Files\MATLAB\R2016a\bin\matlab.exe The directory name is invalid. " But when I open Matlab from start menu it runs without above message and error. What is the solution??

Best Answer

I would delete the current desktop icon first.
Then in File Explorer, navigate to C:\Program Files\MATLAB\R2016a\bin then right-click on matlab.exe then in the menu that pops up, go to Send To and choose Desktop (create shortcut).
That should produce a working desktop icon to replace the non-functioning one.
Related Question