Error message whenever stepwise is run

As a simple test, I did the following:
dog =
1 2 6
2 3 7
3 4 8
4 5 9
5 6 10
cat =
101
102
103
104
105
Running stepwise(dog, cat) results in the following error:
Message Catalog MATLAB:hg:uicontrol was not loaded from the file. Please check file location, format or
contents
Caught "std::exception" Exception message is:
Message Catalog MATLAB:gbtobjects was not loaded from the file. Please check file location, format or contents
Caught "std::exception" Exception message is:
Message Catalog MATLAB:gbtobjects was not loaded from the file. Please check file location, format or contents
Caught "std::exception" Exception message is:
Message Catalog MATLAB:gbtobjects was not loaded from the file. Please check file location, format or contents

15 件のコメント

Adam Danz
Adam Danz 2020 年 9 月 14 日
We need to see the line that generate this error (the line that calls stepwise) and the inputs.
Mark Walton
Mark Walton 2020 年 9 月 14 日
Thanks for the reply. Actually I gave all of that information. The line that calls stepwise is:
stepwise(dog, cat)
The inputs are the two test variables, dog and cat. I should say, though, that I get this error with every input variables I have tried.
Adam Danz
Adam Danz 2020 年 9 月 14 日
The error message contains stepwise(dot,cat) but that doesn't necessarily mean that's the line you called that caused the error.
Based on these answers below, you may be missing an fclose(fid).
Mark Walton
Mark Walton 2020 年 9 月 14 日
Thanks for following up, Adam. I think I am not doing a good job of explaining what I am doing. If I start with no variables in the workspace, create the "dog" and "cat" variables, and then run stepwise(dog, cat) then I get the error. In other words, the following code generates the error every time:
clear
dog = [1:5; 2:6; 6:10];
cat = 101:105;
dog = dog'
cat = cat'
stepwise(dog, cat)
There are no other lines of code.
Jon
Jon 2020 年 9 月 14 日
When I run the commands you list above it opens the user interface and does not give any errors. I am running ver 2020A. So it does not seem to be a general bug, but something specific to your setup or situation.
Mark Walton
Mark Walton 2020 年 9 月 14 日
Thanks, Jon. I agree -- I doubt that this is a general bug.
It must be some setting of mine that is causing trouble. I'm just not sure how to figure out what it is. :-)
Adam Danz
Adam Danz 2020 年 9 月 14 日
Did you look into those links I provided?
Other users got similar error message when too many files were open using fopen.
If that's the problem, "fclose all" should fix it.
Mark Walton
Mark Walton 2020 年 9 月 14 日
編集済み: Mark Walton 2020 年 9 月 14 日
Thanks Adam,
Running "fclose all" didn't solve it. Interestingly, the following command generates no error:
stepwisefit(dog, cat)
That leads me to wonder if, perhaps, the problem is some graphics setting that got changed, That is, "stepwise" generates an error because it produces a GUI interface, but "stepwisefit" works fine, because it doesn't.
Maybe?
In case this helps, running "info = rendererinfo(gca)" yields:
GraphicsRenderer: 'OpenGL Hardware'
Vendor: 'NVIDIA Corporation'
Version: '4.6.0 NVIDIA 388.16'
RendererDevice: 'NVS 315/PCIe/SSE2'
Details: [1×1 struct]
Adam Danz
Adam Danz 2020 年 9 月 14 日
Does the problem persist after restarting Matlab?
Have you tried setting opengl software?
Mark Walton
Mark Walton 2020 年 9 月 14 日
The problem persists after restarting Matlab. I haven't tried setting opengl software. I am not completely sure how to do that. (Sorry.)
Adam Danz
Adam Danz 2020 年 9 月 14 日
Type opengl info and copy that info into a text file so you know what you started with.
Then type opengl software to change from hardware to software.
Likewise for other versions
Walter Roberson
Walter Roberson 2020 年 9 月 14 日
Try
restoredefaultpath
rehash toolboxcache
and then run your code with stepwise(). If it works, then you probably have a conflicting function from a third-party toolbox on your regular MATLAB path.
Mark Walton
Mark Walton 2020 年 9 月 15 日
Thanks Adam and Walter,
Unfortunately, neither of those worked. After running "opengl software" I still can't run stepwise and now I get an error message when I run "opengl info", "opengl hardware", or "opengl hardwarebasic".
The error message is:
Message Catalog MATLAB:class was not loaded from the file. Please check file location, format or contents
Even running "opengl info" yields that error message now. "Stepwise fit" still works.
Adam Danz
Adam Danz 2020 年 9 月 15 日
編集済み: Adam Danz 2020 年 9 月 15 日
This suggestion might be helpful
The file described in that answer was found in the directory below on my system (r2019b)
C:\Program Files\MATLAB\R2019b\resources\MATLAB\en
If that file is where it should be, then perhaps you should contact tech support.
Walter Roberson
Walter Roberson 2020 年 9 月 15 日
Once you get the error message about message catalog you probably have to quit MATLAB and restart it.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

製品

リリース

R2020a

質問済み:

2020 年 9 月 14 日

コメント済み:

2020 年 9 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by