Is it possible to save an object to a structure field?
조회 수: 4 (최근 30일)
이전 댓글 표시
I am interested to put an object into a structure field like:
struct.field=object;
is it possible?
채택된 답변
Ameer Hamza
2020년 4월 27일
편집: Ameer Hamza
2020년 4월 27일
Definitely possible
>> fig = figure;
>> myStruct.a = fig
myStruct =
struct with fields:
a: [1×1 Figure]
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!