필터 지우기
필터 지우기

sum of each column of matrix

조회 수: 1 (최근 30일)
Berbia
Berbia 2013년 1월 8일
I need to create a vector from a matrix by adding each column elements to form a corresponding vector component. matrix columns are fixed dimension 200. My result should be a row vector of dimension 200. How to do it simply in matlab??

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 8일
편집: Azzi Abdelmalek 2013년 1월 8일
A=rand(300,200);
out=sum(A)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by