Does using cells cause dramatically slow down the code?

7 visualizzazioni (ultimi 30 giorni)
Does using cells instead of matrixes make big difference?

Risposta accettata

Guillaume
Guillaume il 4 Apr 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 Commenti
Walter Roberson
Walter Roberson il 4 Apr 2019
Looks like you might not be preallocate the cell array

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by