implementation of a matrix
Afficher commentaires plus anciens
Hello! I want to implement the following matrix:

where
is a given vector of random indices
Can someone help me to implement that?
3 commentaires
madhan ravi
le 19 Juil 2020
Did you do anything for your homework?
Franziska Bömann
le 19 Juil 2020
madhan ravi
le 19 Juil 2020
Ok , can you upload what you have tried?
Réponse acceptée
Plus de réponses (1)
Bruno Luong
le 19 Juil 2020
Modifié(e) : Bruno Luong
le 19 Juil 2020
n = 3;
x = rand(n+1,1);
A = cumprod([ones(size(x)), (x-x(1:end-1).')], 2)
1 commentaire
madhan ravi
le 19 Juil 2020
Modifié(e) : madhan ravi
le 19 Juil 2020
But why though? It’s pretty obvious it’s a homework question? It’s not a homework solving contest XD.
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!