Find struct size in bytes.
조회 수: 22 (최근 30일)
이전 댓글 표시
Hi all,
I have a struct element that contains some vectors and another struct that in it's turn contains some more data. What is the best way of finding the exact size in bytes of the entire struct?
댓글 수: 0
답변 (1개)
Jan
2014년 7월 1일
It depends on how "the exact size" is defined. Do you mean the payload, which is the size of the data only, or do you want to consider the memory used for the headers of the fields also?
Is the output of the whos command sufficient?
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!