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 日

0 投票

cumsum(rand(5,10),1)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeRandom Number Generation についてさらに検索

タグ

質問済み:

2017 年 10 月 23 日

回答済み:

2017 年 10 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by