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!