"Scalar structure required for this assignment" error when adding struct into existing struct.
조회 수: 22 (최근 30일)
이전 댓글 표시
I am having troubles adding 102 length struct consisting of 1x28 numeric cells:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1169888/image.png)
into existing 102 length struct2:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1169893/image.png)
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.
댓글 수: 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!