Why this error?

3 ビュー (過去 30 日間)
Sourov
Sourov 2023 年 8 月 9 日
回答済み: Udit06 2023 年 8 月 23 日
  9 件のコメント
Sourov
Sourov 2023 年 8 月 9 日
dpb
dpb 2023 年 8 月 9 日
That shouldn't be.
Restart your matlab session and try
x=[1:5];
y=rand(size(x));
scatter(x,y)
directly from the command line.
If that doesn't work, there's something bad with the installation.

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

回答 (1 件)

Udit06
Udit06 2023 年 8 月 23 日
Hi Sourov,
Since you have already verified that you have not accidently overwritten the built-in scatter function using which scatter -all scatter command, you can try out the following two approaches to solve the problem you are facing.
  1. Rehashing the toolbox cache
Your MATLAB environment might not be finding the correct built-in scatter function. You can use the following command to rehash the toolbox cache.
rehash toolboxcache
2. If the problem persists, and you have already tried restarting your MATLAB session, as suggested earlier in the comments, there might be something bad with the installation. You can try reinstalling MATLAB.
I hope this helps.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by