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

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)

2 件のコメント

Sven Larsen
Sven Larsen 2022 年 10 月 27 日
ahh, forgot about deal! Thank you
Voss
Voss 2022 年 10 月 27 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCall Web Services from MATLAB Using HTTP についてさらに検索

製品

リリース

R2020a

質問済み:

2022 年 10 月 26 日

コメント済み:

2022 年 10 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by