Regression learner app, unrecognized function at startup

I'm using Matlab R2022a and wanted to start the Regression Learner app for the first time. It comes back with errors:
Unrecognized function or variable 'isTextStrict'.
Error in erase (line 33)
if ~isTextStrict(str)
Error in mlearnapp.internal.ui.savesession.SessionSaveLoadController (line 108)
this.MATLABRelease = erase(versionInfo.Release, {'(',')'});
Error in mlearnapp.internal.model.ModelFactory/createSessionSaveLoadController (line 368)
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 regressionLearner (line 98)
session = sessionFactory.createSession(metricFactory, validationPartitionFactory, problemDependentToolstripFactory, mainThreadBusyTracker);
This seems bad for something that was never used? Any suggestions?
Rogier

 採用された回答

Rogier Mars
Rogier Mars 2022 年 12 月 16 日

0 投票

Ah, restoredefaultpath helps.

5 件のコメント

Ri go
Ri go 2024 年 12 月 9 日
it didn't work for me
Walter Roberson
Walter Roberson 2024 年 12 月 9 日
Error in erase (line 33)
if ~isTextStrict(str)
The function erase, toolbox/matlab/strfun/erase.m does not have 33 lines, so some other erase.m is getting invoked.
which -all erase
to check which erase is getting invoked.
Ri go
Ri go 2024 年 12 月 9 日
it replied with this
>> which -all erase
C:\Program Files\MATLAB\R2024a\toolbox\matlab\strfun\erase.m
erase is a built-in method % string method
C:\Program Files\MATLAB\R2024a\toolbox\matlab\bigdata\@tall\erase.m % tall method
C:\Program Files\MATLAB\R2024a\toolbox\parallel\array\distributed\@codistributed\erase.m % codistributed method
>>
Walter Roberson
Walter Roberson 2024 年 12 月 10 日
Could you confirm that the error message you got is
Unrecognized function or variable 'isTextStrict'.
Error in erase (line 33)
if ~isTextStrict(str)
?
Because C:\Program Files\MATLAB\R2024a\toolbox\matlab\strfun\erase.m only has 21 lines of code.
It does check if ~isTextStrict(str) in the code, but that check is at line 8 of the code.
isTextStrict is defined in R2024a, at toolbox/matlab/strfun/private/isTextStrict.m
which -all isTextStrict
Ri go
Ri go 2024 年 12 月 10 日
the main error that gives me is
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 431)
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);
also for the strict check it gives me this
>> which -all isTextStrict
C:\Program Files\MATLAB\R2024a\toolbox\matlab\strfun\private\isTextStrict.m % Private to strfun
>>

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

リリース

R2022a

質問済み:

2022 年 12 月 16 日

コメント済み:

2024 年 12 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by