can't start classification learner and writing restoredefaultpath doesn't fix it
Show older comments
i've tried to search and look for all sorts of alternatives, even reinstalling matlab, and it doesn't seem to work neither
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Error using erase
Too many input arguments.
Error in mlearnapp.internal.ui.savesession.SessionSaveLoadController (line 108)
this.MATLABRelease = erase(versionInfo.Release, {'(',')'});
Error in mlearnapp.internal.model.ModelFactory/createSessionSaveLoadController (line 430)
sessionSaveLoadController = mlearnapp.internal.ui.savesession.SessionSaveLoadController(session, dialogFactory, problemDependentToolstripFactory, fileUtilities, appConfiguration);
Error in mlearnapp.internal.model.Session (line 168)
this.SessionSaveLoadController = this.ModelFactory.createSessionSaveLoadController(this, problemDependentToolstripFactory);
Error in mlearnapp.internal.model.SessionFactory/createSession (line 18)
session = mlearnapp.internal.model.Session(sessionFactory, modelFactory, metricFactory, validationPartitionFactory, modelList, poolContext, problemDependentToolstripFactory, mainThreadBusyTracker);
Error in classificationLearner (line 100)
session = sessionFactory.createSession(metricFactory, validationPartitionFactory, problemDependentToolstripFactory, mainThreadBusyTracker);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
edit::::::
i fixed it by completely wiping out everything of matlab from my pc and reinstalling matlab
8 Comments
Walter Roberson
on 10 Dec 2024
The relevant lines of code are
versionInfo = ver('matlab');
this.MATLABRelease = erase(versionInfo.Release, {'(',')'});
Supposing that erase is toolbox/matlab/strfun/erase.m then the code could go wrong if somehow ver('matlab') is returning a non-scalar struct . It would be worth putting in a breakpoint at mlearnapp.internal.ui.savesession.SessionSaveLoadController line 108 and checking to see what size versionInfo is
Ri go
on 10 Dec 2024
Ri go
on 10 Dec 2024
Walter Roberson
on 10 Dec 2024
You appear to have the Peter Corke "Robotics Toolbox" installed, and somehow ver('matlab') is returning information about that toolbox as well.
For the moment, uninstall the Peter Corke "Robotics Toolbox" and retry classification learner.
Afterwards you could try reinstalling the Peter Corke toolbox, but it would not astonish me if the problem reoccured.
Ri go
on 10 Dec 2024
Walter Roberson
on 10 Dec 2024
Add-Ons -> Manage Add-Ons
might permit you to uninstall the Robotics Toolbox . If not then
mpmuninstall("Robotics Toolbox")
might permit you to uninstall it.
Ri go
on 10 Dec 2024
Ri go
on 10 Dec 2024
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!