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!