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

1 回表示 (過去 30 日間)
new2matlab
new2matlab 2019 年 12 月 4 日
編集済み: Adam Danz 2020 年 1 月 27 日
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 Center および File ExchangePropagation and Channel Models についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by