MATLAB Answers

is it normal for a matlab program to run more than a day?

조회 수: 2(최근 30일)
Joseph
Joseph 4 Dec 2015
Edited: Adam 4 Dec 2015
i'm trying to make a color plot using a data that has (2500000) elements in it. i have to do some manipulations to sort the data in to a few histogram. but matlab has been running for more than a day and still hasn't got the result. i sould mention that for 32000 data point, the same code takes almost 2 or 3 minutes to give the color plot results. is it normal to take this much time considering 2500000 data points?
thank you

  댓글 수: 3

Adam
Adam 4 Dec 2015
It depends entirely what the operations are and their scalability. If you have an O(n^2) algorithm then clearly going up from 32000 to 2500000 is going to make a huge difference. If your code is O( n log(n) ) then it should scale up ok.
I always try to make sure my long calculations contain progress bars so I get an idea how long it may take and if it is doing anything much at all and if it is slowing down as it goes, etc, etc.
Joseph
Joseph 4 Dec 2015
thank you, i think it should be the matter of scaling. i was wondering is there any intrinsic time limit for matlab to run a code?
Adam
Adam 4 Dec 2015
Code can run for as long as your machine stays switched on theoretically, if Matlab doesn't crash or use up all the memory or anything like that.

로그인 to comment.

답변 수 (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

태그


Translated by