can't start classification learner and writing restoredefaultpath doesn't fix it

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

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
wait, i made a break and then i got this other error
>> mlearnapp.internal.ui.savesession.SessionSaveLoadController
Not enough input arguments.
Error in mlearnapp.internal.ui.savesession.SessionSaveLoadController (line 101)
this.Session = session;
>>
to wich then i ran the version info ver matlab to see what version it is and i got this
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.
wait, to uninstall peter corke robotic toolbox, i will need to use the add-on explorer/ get more apps button?
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.
If not, then use pathtool and find the directories holding the Peter Corke toolbox and remove them.
it said unrecognized function
>> mpmuninstall("Robotics Toolbox")
Unrecognized function or variable 'mpmuninstall'.
>>
should i fully uninstall and completely wipe clean matlab from my pc and reinstall?
i think i fixed it, i literally removed every single file of matlab from my pc by going to all places, installation folder, appdata folders, and documents folder, totally wiped out clean, then i reinstalled with the addons i wanted and now it works, thank you so much for the uninstalling sugestion

Sign in to comment.

Answers (0)

Categories

Products

Release

R2024a

Asked:

on 9 Dec 2024

Edited:

on 10 Dec 2024

Community Treasure Hunt

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

Start Hunting!