フィルターのクリア

Whenever I use the mldivide function or \ operator matlab crashes.

8 ビュー (過去 30 日間)
Firas Mourad
Firas Mourad 2016 年 11 月 11 日
コメント済み: Walter Roberson 2016 年 11 月 12 日
As I have mentioned in the title, for some reason whenever I use mldivide or the \ operator Matlab suddenly crashes. ex : s = A\B or s = mldivide(A,B). My variables are quite big : A is 19881x19881 sparse double and B is 19881x1 double.
Could this be why? Am I running out of memory? My PC runs x64 Win10 and has 6Gb of RAM, the Matlab version is 2013b. Note that I do not face the same problem with Lunix on "weaker" machines. Also, it is interesting to note that with older versions of Matlab (like 2009), there is no problem.
I have no idea why this happens and the error message I get before the crash does not present any kind of hint as to what might be causing it. The error message I get is as follows : MATLAB has encountered an internal problem and needs to close. Then there is a bunch of useless info saying that my work is lost and that I need to restart Matlab.
I have searched online to no avail. Any help is very appreciated.
Thanks :)
  3 件のコメント
Firas Mourad
Firas Mourad 2016 年 11 月 11 日
I in fact have an AMD Radeon.
Matt J
Matt J 2016 年 11 月 11 日
How sparse is the matrix, as measured by nnz(A)/numel(A) ?

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

採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 12 日
  2 件のコメント
Firas Mourad
Firas Mourad 2016 年 11 月 12 日
Thank you very much Sir. As presented in the link provided by you, I had to create environmental variables for my windows user, and set them specific values. This slved the problem.
Walter Roberson
Walter Roberson 2016 年 11 月 12 日
Excellent, my memory isn't completely gone ;-)

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

その他の回答 (1 件)

Steven Lord
Steven Lord 2016 年 11 月 11 日
How did you create the sparse matrix?
  1. Did you create it using MATLAB commands like sparse?
  2. Did you create it using mxCreateSparse? If so, are you certain that your sparse matrix remained valid when you modified the pr, ir, and jc data?
  3. Did some external application create the sparse matrix and store it in a MAT-file?
  3 件のコメント
Steven Lord
Steven Lord 2016 年 11 月 11 日
Please send a MAT-file with the two matrices as well as the crash log file to Technical Support for further investigation.
Walter Roberson
Walter Roberson 2016 年 11 月 12 日
This was one of those ones that would have been pretty difficult to search out in the support records unless you had the key bit of information "AMD", which then made it fairly easy to find.

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

カテゴリ

Help Center および File ExchangeDistributed Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by