필터 지우기
필터 지우기

Is there easier way to assign structure data

조회 수: 1 (최근 30일)
xianjie Zhou
xianjie Zhou 2014년 10월 13일
편집: Adam 2014년 10월 13일
I feel there was a way to assign structure data without repeatedly refer the parents' name. For example: A structure: Struct1.A Struct1.B Struct1.C
Is there a way to assign value like following then we don't need to type struct1 repeatedly.
struct1 { .A=1 .B=2 .C=3 }

채택된 답변

Adam
Adam 2014년 10월 13일
편집: Adam 2014년 10월 13일
struct1 = struct( 'A', 1, 'B', 2, 'C', 3 );

추가 답변 (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