Obtaining an updated diagonal Matrices
이전 댓글 표시
Good day everyone. Pls, can someone assist on generating a diagonal matrices from each row of a random matrix as: M=rand(N,2) where N=20 iterations =300 The matrices i want to generate, at first is, for iter=1:iterations for i=1:N generate a diagonal matrices of 2x2 from M i.e 20 diagonal matrices of size 2x2.
for the update matrices meaning the first ones are previous, so the update or current matrices should be for j=2:iterations-1 for i=1:N generate a 20 diagonal matrices of size 2x2 up to j, Let say something like P(i, ,j)=diag(, ,j) where P(i, ,j) are the current generated 20 diagonal matrices of 2x2 up to j. Thank you. Best regards,
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!