MAtrix
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi there I have a matrix of size 298 x 19. I want to have just one column, so 289x1, but it to be the addition of the row.
So I want to add all the columns to turn it to 298x1.
댓글 수: 0
채택된 답변
추가 답변 (1개)
Thomas
2012년 5월 28일
is this what you need
q=rand(2,3) % random matrix 2x3
out=sum(q,2) % sum each row so output is just 1 column for each row
댓글 수: 0
참고 항목
카테고리
Help Center 및 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!