Matrix with random integer and defined rank

1 visualizzazione (ultimi 30 giorni)
Chanchal Sadhu
Chanchal Sadhu il 7 Mag 2015
Risposto: David Hill il 24 Mar 2022
How can I create a matrix with random integer and defined rank?

Risposte (1)

David Hill
David Hill il 24 Mar 2022
r=1;
while r~=2%desired rank
M=randi(100,3);
r=rank(M);
end

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by