How can i locate where two column values are the same in a row?

조회 수: 1 (최근 30일)
I have a column of 400 numbers that vary depending on input and i want to detect when the become constant (towards the end).
  댓글 수: 1
Adam Danz
Adam Danz 2019년 12월 4일
편집: Adam Danz 2020년 1월 27일
The quesiton is unclear. An example would probably clear things up.

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

채택된 답변

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2019년 12월 4일
a=[1 2 3 4 4 4 4];
s=find([diff(a) 1]==0,1,'first')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by