Why does MATLAB crash when plotting?

15 ビュー (過去 30 日間)
Michele Mingione
Michele Mingione 2021 年 3 月 21 日
回答済み: Michele Mingione 2021 年 4 月 3 日
Hi, I am learning Matlab and am running a simple script. In particular, I don't why but for a few days when plotting, Matlab 2021a is unreasonably slow and crash on my PC (Itel core i7 CPU 2.50 Ghz RAM 8 GB).
I am trying a simple plot:
plotData(X, y);
>> sz = size(X)
sz =
118 2
>> sz = size (y)
sz =
118 1
Any ideas?
Thanks
  7 件のコメント
Rafael Hernandez-Walls
Rafael Hernandez-Walls 2021 年 3 月 21 日
The variable X has two columns, which column do you want to plot against Y?
Rafael Hernandez-Walls
Rafael Hernandez-Walls 2021 年 3 月 21 日
vs Y?

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

回答 (2 件)

Arthi Sathyamurthi
Arthi Sathyamurthi 2021 年 3 月 24 日
My initial analysis indicates this crash was the result of a known issue. You can refer to the following question for resolution steps.

Michele Mingione
Michele Mingione 2021 年 4 月 3 日
It seems to work, now.
There was a mistake with my code plotData(X, y) when saving it. Matlab tried to draw many, many graphs and after a period of time it runs out of RAM and crashes the PC. I fixed it. My fault, sorry

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by