Does using cells cause dramatically slow down the code?

17 views (last 30 days)
Does using cells instead of matrixes make big difference?

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!