Is it possible to save an object to a structure field?

조회 수: 3 (최근 30일)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020년 4월 27일
편집: Ameer Hamza 2020년 4월 27일
I am interested to put an object into a structure field like:
struct.field=object;
is it possible?
  댓글 수: 1
Rik
Rik 2020년 4월 27일
Why wouldn't it be? And why didn't you just try it?

댓글을 달려면 로그인하십시오.

채택된 답변

Ameer Hamza
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개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by