Does using cells cause dramatically slow down the code?

조회 수: 8 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by