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

2 vues (au cours des 30 derniers jours)
stelios loizidis
stelios loizidis le 15 Juil 2019
Commenté : Guillaume le 15 Juil 2019
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 commentaires
Adam
Adam le 15 Juil 2019
Depends entirely what your calculation is. Also
doc profile
is good for understanding exactly what takes time rather than making assumptions.
Guillaume
Guillaume le 15 Juil 2019
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.

Connectez-vous pour commenter.

Réponses (1)

Stephan
Stephan le 15 Juil 2019

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by