Does using cells cause dramatically slow down the code?

7 ビュー (過去 30 日間)
IBM watson
IBM watson 2019 年 4 月 4 日
コメント済み: Walter Roberson 2019 年 4 月 4 日
Does using cells instead of matrixes make big difference?

採用された回答

Guillaume
Guillaume 2019 年 4 月 4 日
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 件のコメント
IBM watson
IBM watson 2019 年 4 月 4 日
Thank you!
Walter Roberson
Walter Roberson 2019 年 4 月 4 日
Looks like you might not be preallocate the cell array

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by