struct array
古いコメントを表示
Hi guys,
There are two struct arrays, A, B; They both have a member data called "id". For example: A(1).id = []; A(2).id = [] B(1).id = 'hello'; B(2).id = 'yes';
I'd like to copy the "id" of B to A without using loop.
Is there any method?
Thanks
1 件のコメント
Fangjun Jiang
2011 年 9 月 22 日
help deal, among a few other solutions.
採用された回答
その他の回答 (1 件)
Daniel Shub
2011 年 9 月 22 日
Does this work?
[A(:).id] = B(:).id
カテゴリ
ヘルプ センター および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!