Matrix with random integer and defined rank

1 次查看(过去 30 天)
How can I create a matrix with random integer and defined rank?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by