Rank: 6356 based on 3 downloads (last 30 days) and 1 file submitted
photo

Michael Petralia

E-mail
Company/University
Harvard Microrobotics Lab

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Michael
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Aug 2009 unique_no_sort_rows find unique rows of a matrix without resorting the rows Author: Michael Petralia cell array, matrices, matrix, unique, unsorted, vector 3 3
  • 3.0
3.0 | 1 rating
Comments and Ratings by Michael
Updated File Comments Rating
31 Aug 2009 unique_no_sort_rows find unique rows of a matrix without resorting the rows Author: Michael Petralia

fixed this. file should now work with M x N matrices, N>2

Comments and Ratings on Michael's Files View all
Updated File Comment by Comments Rating
02 Sep 2009 unique_no_sort_rows find unique rows of a matrix without resorting the rows Author: Michael Petralia Wong, Johnson

Must simpler would be:

[unique_sorted,i,j] = unique(A,'rows','first');
B = A(sort(i),:);

31 Aug 2009 unique_no_sort_rows find unique rows of a matrix without resorting the rows Author: Michael Petralia Petralia, Michael

fixed this. file should now work with M x N matrices, N>2

31 Aug 2009 unique_no_sort_rows find unique rows of a matrix without resorting the rows Author: Michael Petralia us

does not work on matrices M x N with N > 2,
since your statement
B = unsorted(:,2:3);
should read
B = unsorted(:,2:end);

us

Top Tags Applied by Michael
cell array, matrices, matrix, rows, unique
Files Tagged by Michael
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Aug 2009 unique_no_sort_rows find unique rows of a matrix without resorting the rows Author: Michael Petralia cell array, matrices, matrix, unique, unsorted, vector 3 3
  • 3.0
3.0 | 1 rating

Contact us