Out of memory while ruuning matlab code? its error based on coding or hardware issues ?

1 回表示 (過去 30 日間)
voxey
voxey 2019 年 2 月 16 日
コメント済み: Walter Roberson 2019 年 2 月 16 日
Out of memory while ruuning matlab code? its error based on coding or hardware issues ? can any one share ideas ?

回答 (1 件)

Asieh Daneshi
Asieh Daneshi 2019 年 2 月 16 日
both!
Your computer RAM is not powerful enough to run your code. sometimes you can solve this issue by changing your code. for example, try to remove nested loops, and replace them with codes that work on arrays. also, try to break large matrixes into smaller ones so that computer can hold them in memory. Delete used variables from the memory as soon as you don't need them anymore.
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 2 月 16 日
Software error can be responsible . In r2016b and later if you add (multiply, subtract , or other binary operations ) between a row vector and aa column vector then it is no longer an error and instead is treated as if you had used bsxfun.
But there are also common routines that need a lot more memory than expected . Some routines produce output that is half the square of the number of input column , in each direction, so 1000 columns of input could .output 500000 by 500000

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

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by