Help with a problem in a Matrix

조회 수: 7 (최근 30일)
Andres  Romero
Andres Romero 2016년 9월 9일
댓글: Andres Romero 2016년 9월 9일
Is there is a function or way to do this :
A = [2015,10,07;2015,10,07;2014,11,08;2014,11,08;2013,09,08;2005,10,03;2005,10,03]
Using matrix A, obtain this matrix a:
a = [2015,10,07;2014,11,08;2013,09,08;,2005,10,03]
  댓글 수: 2
Image Analyst
Image Analyst 2016년 9월 9일
I'll fix it for you this time (the second time), but for the future, read this link http://www.mathworks.com/matlabcentral/answers/13205#answer_18099
Andres  Romero
Andres Romero 2016년 9월 9일
thank you so much ....

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2016년 9월 9일
Use unique(). It will be a good exercise for you to try to figure out how to call it to do what you want. You'll learn more than if we just hand over the answer. If you just can't do it, let us know.
  댓글 수: 1
Andres  Romero
Andres Romero 2016년 9월 9일
[C, ia, ic] = unique(A,'rows')
Thank you bro.... I use this and works... if someone else need it...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by