ans =3 78Use deal to overwrite each element in the list.[c{:}] = deal([10 20],[14 12]);
c{:}ans =10 20ans =14 12This example does the same as the one above, but with a comma-separated list of vectors
in a structure field:s(1).field1 = [31 07];
s(2).field1 = [03 78];
s.field1ans =31 7ans =3 78Use deal to overwrite the structure fields.[s.field1] = deal([10 20],[14 12]);
s.field1ans =10 202 Program Components