Why do I get "The parameter is incorrect" error when I launch Matlab 2017 (a or b).

When I launch MATLAB 2017a or 2017b from the desktop icon (ie: GUI; no command line parameters), I get a popup with the error "The parameter is incorrect".
Does something need to be reset?
Thanks.

Answers (3)

In fact Matlab cannot find the directory of the startup. in order to resolve this issue you can just go to Preferences --> General --> Initial working folder and you select your folder that you wish start up with
Best regards, .
No.

2 Comments

Yeah, saw that one. I'm basically just launching the application from the icon on my desktop. I have no program or project loaded. It's got to be something in my settings?
I did the exit, and I am now getting a "Bad pathname" error as well. Can I gripe that this is a poor error message as it doesn't include the name of the bad path? :-)
Thanks.

Sign in to comment.

What exactly does "ie: GUI; no command line parameters" mean? Did it work before or did this behavior start directly after the installation of Matlab? Does the EventViewer reveal any details about the source of the message?
You can try (a bold guess) to reset the preferences: Stop Matlab, rename the files in prefdir (to keep a backup copy), restart it. Does the error occur again? Then a preferences file was damaged.

2 Comments

It was present in 2017a and continued in 2017b. There is nothing in the Event Viewer to indicate a problem. Procmon indicates issues, but nothing conclusive.
I tried removing the preference directory and MATLAB launched fine. However, the next time I launched, the error retunred.
It's frustrating that the error messages tell you nothing and no additional information can be found within MATLAB itself. As a programmer, this defeats the purpose of the error message. It reminds of the UNIX "can't open file" error, which could mean myriad of things.
@Stuart: Yes, this is an annoying message. If the error does not occur, when you recreate the preferences file, but occurs again at the next start, this seems to mean, that a tool stores a bad parameter in the preferences file. Find out, which file it is (I'm not sure, if the file names have changed in R2017b), by renaming single files in the preferences folder. If you have found the file, you could attach it here.
Check if the problem happens before or after running matlabrc.m. Insert a pause command or anything else - although this function should not be touched by users usually. If it occurs after or inside matlabrc, you could insert a "dbstop if error" also.

Sign in to comment.

Categories

Products

Asked:

on 25 Jan 2018

Answered:

on 10 May 2018

Community Treasure Hunt

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

Start Hunting!