How will I reduce the time it takes to calculate data?

조회 수: 1 (최근 30일)
stelios loizidis
stelios loizidis 2019년 7월 15일
댓글: Guillaume 2019년 7월 15일
Hello.
In an excel file I put some data and then I creared a big matrix (1200X2000) on Matlab based on this data. Then I took this matrix and used it to calculate other data. Then I increased the number of data in excel and I made a new matrix (1500X5000). When I used this matrix to calculate what I want Matlab takes too much time. In the code I wrote I have a for loop in another and I think this is responsible for the long time it takes. What change can be made to reduce the time Matlab needs because I still have to use another big matrix (1600X8000). Your help is important.
  댓글 수: 2
Adam
Adam 2019년 7월 15일
Depends entirely what your calculation is. Also
doc profile
is good for understanding exactly what takes time rather than making assumptions.
Guillaume
Guillaume 2019년 7월 15일
1600x8000 is not a particularly big matrix (~97 MB) but of course if you're doing calculation on each element individually it can take some time. Of course, As Adam says it all depends on the codeand whether or not it is well written, so show us that code.

댓글을 달려면 로그인하십시오.

답변 (1개)

Stephan
Stephan 2019년 7월 15일

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by