Feeds
提问
I want to store the value of matrix in each iteration and add it to the stored matrix in the next iteration. At the end I would get the sum of all matrices in the loop.
Q=[ 171.1 3.622 0; 3.622 12.07 0 ; 0 0 4.5] s=input('Total number of Layers:') for n=1:s x = input ('Enter the value ...
10 years 前 | 2 个回答 | 0
2
个回答提问
Hi, I want to know how to sum all the matrices in a loop at the end of it
I have a loop in which I define a matrix in each iteration. At the end of it I want to sum all of these matrices. Any help would...
10 years 前 | 1 个回答 | 0
