Matlab goes into busy state when input is random and big.

3 ビュー (過去 30 日間)
gautam
gautam 2012 年 9 月 17 日
On passing a random array of 8000 elements as input matlab goes into busy state..but my code works fine if the input is a simple sine wave array of 1000 elements..any help?
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 9 月 18 日
What are you passing the input to ?
Jan
Jan 2012 年 9 月 18 日
There could be an infinite number of reasons. E.g. your code could contain a loop like this:
function Y=YourFcn(X)
while numel(X) > 1000
end
Without seeing the code, it is impossible to guess the reason for its behavior.

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

回答 (1 件)

Jason Ross
Jason Ross 2012 年 9 月 17 日
What happens if you pass in a random array of 1000 elements? Same performance as the sine wave?
Are you running out of RAM and going to use virtual memory? That will certainly slow processing, as well. Your system has a utility built in that will let you monitor this.
  1 件のコメント
Javier
Javier 2012 年 9 月 17 日
Hello Gautam
If you are using randn, this comes from a symmetric distribution. In that case generate 4000 and change the sing.
Hope it helps, best regards
Javier

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by