implementation of a matrix
古いコメントを表示
Hello! I want to implement the following matrix:

where
is a given vector of random indices
Can someone help me to implement that?
3 件のコメント
madhan ravi
2020 年 7 月 19 日
Did you do anything for your homework?
Franziska Bömann
2020 年 7 月 19 日
madhan ravi
2020 年 7 月 19 日
Ok , can you upload what you have tried?
採用された回答
その他の回答 (1 件)
Bruno Luong
2020 年 7 月 19 日
編集済み: Bruno Luong
2020 年 7 月 19 日
n = 3;
x = rand(n+1,1);
A = cumprod([ones(size(x)), (x-x(1:end-1).')], 2)
1 件のコメント
madhan ravi
2020 年 7 月 19 日
編集済み: madhan ravi
2020 年 7 月 19 日
But why though? It’s pretty obvious it’s a homework question? It’s not a homework solving contest XD.
カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!