필터 지우기
필터 지우기

"Scalar structure required for this assignment" error when adding struct into existing struct.

조회 수: 37 (최근 30일)
I am having troubles adding 102 length struct consisting of 1x28 numeric cells:
into existing 102 length struct2:
so struct2 would consist of four fields: a,b,c,d.
But struct2.d = struct1.d is giving "Scalar structure required for this assignment." error.

채택된 답변

Voss
Voss 2022년 10월 26일
[struct2.d] = deal(struct1.d)

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by