How to use find function to find consistent value in column?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Franchesca
am 15 Mai 2014
Beantwortet: Sean de Wolski
am 15 Mai 2014
How do I find when a value in a matrix is the same (+ or - 5%) for say 20 rows?
I have this code so far:
%% Find start of jump
st = find(mydata(:,5),
but I don't know how to finish the find function of to find when the value of the rows is constant (+ or - 5%) for 20 rows for example.
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 15 Mai 2014
Look at diff() This will tell you the difference between rows.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!