why my empty cell array taking 104 bytes instead of 112 bytes..?
이전 댓글 표시
Hello,
it is mentioned in the document that,
an empty cell array will take
30 bytes for 32 bit systems
& 112 bytes for 64 bit systems.

i got confused why my 64 bit system is taking 104 bytes of memory for an empty cell array..
can someone please explain me..?
Thanks in advance ..!
댓글 수: 2
Bruno Luong
2020년 9월 6일
can you post a link to the document?
OMKARAM RAJESHWARA RAJU
2020년 9월 6일
채택된 답변
추가 답변 (1개)
Image Analyst
2020년 9월 6일
1 개 추천
Cell arrays take a huge amount of overhead. Don't use them unless you have to, which means you'll have different kinds of variables in each cell. Otherwise use a double array if they're all numbers, or a table if it's a mixture of variable classes (e.g. strings and numbers) but each column will be all of the same class.
See the very first item on the FAQ: What is a cell array?
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!