When i want to start Simulink, system prompted "Undefined variable "sltemplate" or class "sltemplate.ui.StartPage.show""
Show older comments
I just installed Matlab 2016 in windows 7 system and I found I use Simulink. When I start simulink, it will prompt following error: Undefined variable "sltemplate" or class "sltemplate.ui.StartPage.show". By the way, I just upgrade my computer hardware, I don't know if this is the reason for this problem.
Answers (1)
Bhavesh
on 9 May 2016
The default paths of MATLAB may not be configured properly on your workstation. In order to reset them, please proceed with the following steps:
In MATLAB, type the commands to restore the application path
>> rehash toolboxcache
>> restoredefaultpath
>> matlabrc
>> savepath
Any custom path will be overwritten but you can make a backup as described in the article below:
How will running the restoredefaultpath and savepath commands affect my custom paths and how do I back up my custom paths? http://www.mathworks.com/matlabcentral/answers/166871
"restoredefaultpath" path will reset paths for all toolboxes/addons. This is why if you have installed a third party toolbox which doesn't come from MathWorks, you will have to reinstall that toolbox.
9 Comments
Rachit Semalty
on 4 Jun 2018
Thank you very much. Yes it does work.
Gautam Sharma
on 7 Feb 2019
Thank you so so much. I just spent over 4 hrs banging my head to solve this
Elodie Chatel
on 27 Feb 2020
I just did what described, and I still have the same errors...
Theresa Cenate
on 4 Nov 2020
thankyou very much. It worked
Akakan-Abasi Okon
on 26 Nov 2020
Edited: Akakan-Abasi Okon
on 26 Nov 2020
I am having issues trying to open simulink. Matlab is showing ''Error in sltemplate.ui.StartPage.show"
I've tried the precedures above but still didn't work.
chris pang
on 23 Dec 2020
I have tried, it also doesn't work.
Wolfgang Schramm
on 13 Jan 2021
Dear Matlab Experts,
I get a similar issue after 2020b Update3
>> simulink
[...]
Error in sltemplate.ui.StartPage.show
Error in simulink (line 40) [...]
Unable to load bundle binary C:\LegacyApp\MATLAB\R2020b\bin\win64\builtins\sl_lib_browse2\mwsl_lib_browse2_builtinimpl.dll. Error: 126: not connected
I have tried other findings in the forum, nothing worked so far
The solution above does not work (for my error)
anna friz
on 13 Apr 2021
I have the same problem, simulink won't open and it gives me this error
Unable to load bundle binary C:\Program Files (x86)\Matlab\bin\win64\builtins\sl_lib_browse2\mwsl_lib_browse2_builtinimpl.dll. Error: 126: not connected
still haven't found a solution
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!