Why do I get "The parameter is incorrect" error when I launch Matlab 2017 (a or b).
Show older comments
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.
1 Comment
Walter Roberson
on 25 Jan 2018
Odd.
Do you have a startup.m file?
which -all startup
Answers (3)
Loutfi Belaaribi
on 10 May 2018
1 vote
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, .
Stuart Rose
on 25 Jan 2018
0 votes
Jan
on 25 Jan 2018
0 votes
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
Stuart Rose
on 25 Jan 2018
Jan
on 25 Jan 2018
@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.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!