Matrix with random integer and defined rank

1 Ansicht (letzte 30 Tage)
Chanchal Sadhu
Chanchal Sadhu am 7 Mai 2015
Beantwortet: David Hill am 24 Mär. 2022
How can I create a matrix with random integer and defined rank?

Antworten (1)

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

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by