Effacer les filtres
Effacer les filtres

Is there a faster version of min

5 vues (au cours des 30 derniers jours)
Chaoyang Jiang
Chaoyang Jiang le 27 Avr 2018
Commenté : Walter Roberson le 27 Avr 2018
I did the profiling, and this line takes the most of time: running 28449740 times and takes 163.84s.
I am wonderring if there is any version that is faster than min.
[a,b]=min(c(s1,s2));
  9 commentaires
Stephen23
Stephen23 le 27 Avr 2018
"... this line takes the most of time: running 28449740 times and takes 163.84s."
Sure. But there are several operations on that line, so how do you know that min is the slow one?
Walter Roberson
Walter Roberson le 27 Avr 2018
Reminder: extracting consecutive rows is faster than extracting consecutive columns, so you should consider transposing your array.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Parallel Computing Fundamentals dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by