Put a breakpoint right before you assign the first field to array(3). Check the values of the first and second structures by putting these lines in
Now do the lines where you assign fields to array(3).
array(3).amplitud=A;
array(3).angle=Phi;
array(3).name=name;
array(3).lastname=lastname;
array(3).ID=id;
Now put these lines again
array(1)
array(2)
whos array
The values for array(1) and array(2) should not vanish. You should not lose those structures. If they do, there's something you're not telling us, like you have a "clear" in there somewhere, or you're not incrementing the index correctly (like it's not really 3 but some variable instead).