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!