History.xml strange behavior

13 ビュー (過去 30 日間)
Radu Trimbitas
Radu Trimbitas 2020 年 6 月 1 日
回答済み: Gaurav Garg 2020 年 6 月 8 日
When MATlab detect an error, after the error message MATLAB display
[1,2,3]*[2,1]'
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix
matches the number of rows in the second matrix. To perform elementwise multiplication, use '.*'.
An error was encountered opening file C:\Users\Radu\AppData\Roaming\MathWorks\MATLAB\R2020a\History.xml
An error was encountered opening file C:\Users\Radu\AppData\Roaming\MathWorks\MATLAB\R2020a\History.xml
  1 件のコメント
Radu Trimbitas
Radu Trimbitas 2020 年 6 月 2 日
The last two messages appear systematicaly, after any kind of error.

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

回答 (1 件)

Gaurav Garg
Gaurav Garg 2020 年 6 月 8 日
Hey
I wasn't able to reproduce the same issue on my system. I suspect the error would be because of some history files unable to load during MATLAB startup (MATLAb stores all the commands from command history in a file named history.xml), though they don't seem to have any impact on the normal code.
I would recommend you to restart MATLAB, change the number of rows in the second matrix (because matrix multiplication doesn't support your case - columns in first matrix and rows in second matrix should be same) and try the code again.

カテゴリ

Help Center および File ExchangeData Type Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by