Rank: 3639 based on 11 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 matrix, unique, unsorted, matrices, cell array, rows 11 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 matrix, unique, unsorted, matrices, cell array, rows 11 3
  • 3.0
3.0 | 1 rating
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com