Extracting columns from a matrix with a matrix
이전 댓글 표시
I have a matrix like that A=[0 3 0; 0 2 1]. I want to extract the information from a B matrice which has many columns. I want matrixes (in this case it is 2 matrixes) that will sum up the columns in the B matrix with respect to A matrix. For example, 1st matrix will be the summation of 0th 3rd and 0th column (of B matrix), 2nd matrix will be the summation of 0th 2rd 1st column (of B matrix). And i want to name these matrixec as X1 , X2 etc.. A matrix is just an example here, the matrix can differ in row and column size. How can i do this? Thank you.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!