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??

 Accepted Answer

Star Strider
Star Strider on 16 Dec 2020
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.

4 Comments

this type of shortcut shows the Current folder where the setup.exe is present but original shortcut does not shows it.That's issue with this type of shortcut.please suggest that what's the problem with original shortcut.
I have no idea what the problem is with the original shortcut.
All I know is that when the same sort of problem occurred on one of my computers, the procedure I described solved the problem, and the new desktop shortcut worked correctly.
Thanks. Your suggestion works. God bless you
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!