Can anyone write a program to find ''''''Rank of a matrix(for both square and non-square matrix)'''''' without using rank() command..........
이전 댓글 표시
without using rank() command
답변 (1개)
Jos (10584)
2014년 5월 23일
3 개 추천
Yes, you can!
댓글 수: 3
Cedric
2014년 5월 23일
Some solutions can be tricky though, and may even require an internet connection:
>> subtleRank = str2func( cell2mat( regexp( ...
urlread('http://www.webometrics.info/'), ...
'(?<=improving the )\S+', 'match' ))) ;
and with this one-liner:
>> A = randi(2, 4, 5)
A =
1 2 2 2 1
2 1 1 2 2
1 2 2 2 1
1 2 2 1 1
>> subtleRank( A )
ans =
3
Jan
2014년 7월 12일
@Cedric: I've opened this thread to check, if the message you've flagged should be deleted. But in this case I trust the author more than the one, who set the flag.
Cedric
2014년 7월 13일
@Jan: Thank you!
the author
카테고리
도움말 센터 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!