Matrix with random integer and defined rank
古いコメントを表示
How can I create a matrix with random integer and defined rank?
1 件のコメント
DB
2022 年 3 月 24 日
Hi, have you got an answer?
回答 (1 件)
David Hill
2022 年 3 月 24 日
r=1;
while r~=2%desired rank
M=randi(100,3);
r=rank(M);
end
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!