Effacer les filtres
Effacer les filtres

Matrix with random integer and defined rank

1 vue (au cours des 30 derniers jours)
Chanchal Sadhu
Chanchal Sadhu le 7 Mai 2015
How can I create a matrix with random integer and defined rank?
  1 commentaire
DB
DB le 24 Mar 2022
Hi, have you got an answer?

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by