How can i locate where two column values are the same in a row?
1 view (last 30 days)
Show older comments
new2matlab
on 4 Dec 2019
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 Comment
Accepted Answer
JESUS DAVID ARIZA ROYETH
on 4 Dec 2019
a=[1 2 3 4 4 4 4];
s=find([diff(a) 1]==0,1,'first')
0 Comments
More Answers (0)
See Also
Categories
Find more on Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!