Error using Table with New Installation of 2022a

2 ビュー (過去 30 日間)
Paul Safier
Paul Safier 2022 年 4 月 21 日
コメント済み: Justin Ashmall 2023 年 8 月 10 日
When I run these simple commands, I get the following error. I'm not sure where to look to address this.
xmin=1; xmax=2; ymin=3; ymax=5;
tst = table(xmin,xmax,ymin,ymax);
Error using table
The specified superclass 'matlab.mixin.indexing.RedefinesDot' contains a parse error, cannot be
found on MATLAB's search path, or is shadowed by another file with the same name.
I have been using version 2021a previously and 2022a was just installed.
  1 件のコメント
Justin Ashmall
Justin Ashmall 2023 年 8 月 10 日
We are seeing exactly the same problem with table via MATLAB Production Server. It's an intermittiment problem, it works fine for some time and then starts throwing this strange error. We do not have another table.m file (confirmed by adding which table -all debugging output).
The only work around is to restart the MPS server or redeploy the CTF, both of which prove to be only temporary solutions. Feels like a bug in MATLAB itself?

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

回答 (2 件)

Cris LaPierre
Cris LaPierre 2022 年 4 月 21 日
編集済み: Cris LaPierre 2022 年 4 月 22 日
I was able to run your code in R2022a without error.
It can also be run in R2022a on this platform (note the 'Ran in R2022a' stamp in the upper right of this post).
xmin=1;xmax=2;ymin=3;ymax=5;
tst = table(xmin,xmax,ymin,ymax)
tst = 1×4 table
xmin xmax ymin ymax ____ ____ ____ ____ 1 2 3 5
There appears to be an issue with your install. Perhaps try reinstalling?

Image Analyst
Image Analyst 2022 年 4 月 21 日
You don't have your own m-file called table.m do you? What does this show:
which -all table
  2 件のコメント
Paul Safier
Paul Safier 2022 年 4 月 21 日
I get this ouput, which I think is normal:
which -all table
/nfs/mathworks/matlab/R2022a/common/toolbox/matlab/datatypes/tabular/@table/table.m % table constructor
/nfs/mathworks/matlab/R2022a/common/toolbox/matlab/bigdata/@tall/table.m % tall method
/nfs/mathworks/matlab/R2022a/common/toolbox/parallel/parallel/@codistributed/table.m % codistributed method
/nfs/mathworks/matlab/R2022a/common/toolbox/parallel/parallel/@distributed/table.m % distributed method
we're going to try and reinstall... Thanks for your suggestion.
James Lebak
James Lebak 2022 年 4 月 27 日
This sounds like the path is not configured correctly for R2022a. If reinstalling does not help, then please try
>> restoredefaultpath
>> rehash toolboxcache
>> savepath

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by