I'm not exactly sure if I'm using the right terminology. I have
A(1).B = 5; A(2).B = 6; A(3).B = 7;>>A.Bans = 5ans = 6ans = 7
I have two questions: 1. I want to multiply each element of the structured array so that A.B*2 would equal 10,12,14 instead of 5,6,7. but instead I get the error
>>A.B*2Error using * Too many input arguments.
2. How do I make a copy of the structured array? I have tried but it just results in the first element.
>>C = A.BC = 5
Likewise
>> C = A(1:3).BC = 5
instead of C(1).B = 5, C(2).B = 6, and C(3).B = 7 like I want.
Best Answer