Does using cells cause dramatically slow down the code?

6 visualizaciones (últimos 30 días)
IBM watson
IBM watson el 4 de Abr. de 2019
Comentada: Walter Roberson el 4 de Abr. de 2019
Does using cells instead of matrixes make big difference?

Respuesta aceptada

Guillaume
Guillaume el 4 de Abr. de 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 comentarios
Walter Roberson
Walter Roberson el 4 de Abr. de 2019
Looks like you might not be preallocate the cell array

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by