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).

采纳的回答

JESUS DAVID ARIZA ROYETH
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