how to set multiple fields in a struct without using a loop
古いコメントを表示
Hello guys, I have the next problem, I want to make something like this:
A={'A1';'A2';'A3'};
them make B=somefunction(B,A); and obtain this:
B =
A1: []
A2: []
A3: []
Any idea?
4 件のコメント
José-Luis
2014 年 6 月 6 日
I don't understand. What's B?
Lisandro Jimenez
2014 年 6 月 6 日
José-Luis
2014 年 6 月 6 日
B is a struct with fields A1, A2 and A3?
Lisandro Jimenez
2014 年 6 月 6 日
採用された回答
その他の回答 (1 件)
Lisandro Jimenez
2014 年 6 月 6 日
カテゴリ
ヘルプ センター および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!