I would like to modify the values of a field of a struct array (without using a for loop). If my initial struct array is the following:
a.b(1).c = 5;a.b(2).c = 5;a.b(3).c = 5;
I would like to modify it such that:
a.b(1).c = 1a.b(2).c = 2a.b(3).c = 3
I thought that
[a.b.c] = [1:3]
would work, but it doesn't: Insufficient number of outputs from right hand side of equal sign to satisfy assignment.
Best Answer