Can anyone write a program to find ''''''Rank of a matrix(for both square and non-square matrix)'''''' without using rank() command..........
Mostrar comentarios más antiguos
without using rank() command
2 comentarios
the cyclist
el 23 de Mayo de 2014
Cedric
el 23 de Mayo de 2014
What have you tried so far?
Respuestas (1)
Jos (10584)
el 23 de Mayo de 2014
3 votos
Yes, you can!
3 comentarios
Cedric
el 23 de Mayo de 2014
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
el 12 de Jul. de 2014
@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
el 13 de Jul. de 2014
@Jan: Thank you!
the author
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!