DNdog =
108
108
107
107
23
23
y = 108 %How do I get the above matrix to this state?
107
23

 채택된 답변

Thorsten
Thorsten 2017년 4월 13일

0 개 추천

Using
unique

댓글 수: 4

Muhendisleksi
Muhendisleksi 2017년 4월 13일
편집: Muhendisleksi 2017년 4월 13일
y = 23 %This is happening.
107
108
y = 108 %I want it to be like this.
107
23
Use 'stable' as the set order specifier:
y = unique(DNdog, 'stable')
Muhendisleksi
Muhendisleksi 2017년 4월 13일
thanks!
Star Strider
Star Strider 2017년 4월 13일
My pleasure!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 4월 13일

댓글:

2017년 4월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by