struct array
Mostra commenti meno recenti
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 Commento
Fangjun Jiang
il 22 Set 2011
help deal, among a few other solutions.
Risposta accettata
Più risposte (1)
Daniel Shub
il 22 Set 2011
Does this work?
[A(:).id] = B(:).id
Categorie
Scopri di più su Structures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!