Does using cells cause dramatically slow down the code?

6 Ansichten (letzte 30 Tage)
IBM watson
IBM watson am 4 Apr. 2019
Kommentiert: Walter Roberson am 4 Apr. 2019
Does using cells instead of matrixes make big difference?

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by