필터 지우기
필터 지우기

libstruct does not fill embedded arrays

조회 수: 2 (최근 30일)
Krzysztof
Krzysztof 2013년 9월 24일
If a structure member is defined to have a fixed-size array of numbers, such as int32#16, why does get(libstruct) display the corresponding field as an empty array [], rather than an array of the declared size filled with the default value for that type?

답변 (1개)

Philip Borghesani
Philip Borghesani 2013년 9월 24일
It only displays as [] for a null structure. If a libstruct object is created with no initial values then a null (unallocated) object is created. If any field is initialized (on creation or at a later time) then the array will show as filled with the default value for that type.

카테고리

Help CenterFile Exchange에서 Construct and Work with Object Arrays에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by