"Bytes" is 0 in Variable Editor
조회 수: 2 (최근 30일)
이전 댓글 표시
a.data=rand(100,1);
b=dlnode(rand(100,1));
Then you'll find in Variable Editor the "Bytes" of a.data or b.data is 0!
Why?
Verified on 2008a and 2010b.
While it's correct in Workspace Window.
Thanks a lot.
댓글 수: 0
채택된 답변
Fangjun Jiang
2011년 11월 15일
If you do a=struct() or b=[], you will see that the variable a and b have been declared but not assigned value. Thus, a and b have not taken any memory bytes to store the value. Once you assign a value, the number of bytes will change depending on the size of the data stored.
댓글 수: 5
Fangjun Jiang
2011년 11월 16일
Thank you! I've verified in R2010b that it is showing 0 bytes.
I think this might be a bug. Please report to TMW. Good finding!
추가 답변 (1개)
Walter Roberson
2011년 11월 15일
In R2008b, I did
a.data=rand(100,1);
openvar a
but I could not see any "Bytes" field in the Variable Editor.
Same when I used the Workspace Browser to examine a.
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!