필터 지우기
필터 지우기

How to add a new field in astruct

조회 수: 1 (최근 30일)
OLav Røthe Kyte
OLav Røthe Kyte 2019년 11월 6일
답변: Fangjun Jiang 2019년 11월 6일
test=struct('generated_power',genPwr,'Platform_motions',PlatMotions)
How can I add a new field to my "test"-struct between runs?

채택된 답변

Fangjun Jiang
Fangjun Jiang 2019년 11월 6일
setfield(test,'NewField',1)

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