필터 지우기
필터 지우기

cumulative sum in matrix

조회 수: 1 (최근 30일)
Joseph Lee
Joseph Lee 2017년 10월 23일
답변: Stephen23 2017년 10월 23일
How do i generate a 5x10 matrix such as:
Z1 Z2 Z3 ... Z4 Z5 Z6 Z7 Z8 Z9 Z10 ( each Z is a random number)
Z1+Z1' Z2+Z2' Z3+Z3' ( cumulative sum of previous Z value with Z', Z' is a new random number)
.
.
Z1+Z1'+Z1''+Z1'''+Z1''''

채택된 답변

Stephen23
Stephen23 2017년 10월 23일
cumsum(rand(5,10),1)

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by