Matrix with random integer and defined rank

How can I create a matrix with random integer and defined rank?

답변 (1개)

David Hill
David Hill 2022년 3월 24일

0 개 추천

r=1;
while r~=2%desired rank
M=randi(100,3);
r=rank(M);
end

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

질문:

2015년 5월 7일

답변:

2022년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by