When i want to start Simulink, system prompted "Undefined variable "sltemplate" or class "sltemplat​e.ui.Start​Page.show"​"

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)

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

Thank you so so much. I just spent over 4 hrs banging my head to solve this
I just did what described, and I still have the same errors...
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.
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)
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

Sign in to comment.

Categories

Products

Tags

Asked:

on 5 May 2016

Commented:

on 13 Apr 2021

Community Treasure Hunt

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

Start Hunting!