Does using cells cause dramatically slow down the code?

8 vues (au cours des 30 derniers jours)
IBM watson
IBM watson le 4 Avr 2019
Does using cells instead of matrixes make big difference?

Réponse acceptée

Guillaume
Guillaume le 4 Avr 2019
A cell array of scalar numbers will always be slower to process that a matrix with the same scalar numbers, yes. There's also no point in using a cell array for that since you can't perform mathematical operations directly on a cell array.
What is the context behind your question?
  4 commentaires
IBM watson
IBM watson le 4 Avr 2019
Thank you!
Walter Roberson
Walter Roberson le 4 Avr 2019
Looks like you might not be preallocate the cell array

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices 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