I have 10 matrices(10*24 size each) named A1,A2,,,,A10.Now i want this

`E1=sum(A1); E2=sum(A2); till E10=sum(A10);`

thus E1,E2,,,,,E10 each matrices size of 1*24 . so there is another way to write in short code ?

Skip to content# MATLAB: Is there the more elegant way to do this

evalevalinlist of variablesmetapitfall

I have 10 matrices(10*24 size each) named A1,A2,,,,A10.Now i want this

`E1=sum(A1); E2=sum(A2); till E10=sum(A10);`

thus E1,E2,,,,,E10 each matrices size of 1*24 . so there is another way to write in short code ?

## Best Answer