Get column E based on transition in Column I
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Kcire L
am 20 Sep. 2022
Beantwortet: Dyuman Joshi
am 20 Sep. 2022
Hello,
I have imported a spreadsheet into Matlab and am trying to look at where column I transitions from a 1 to a 0.
When that transition is determined, I then need to take the value of column E.
Could anyone help me do this? I have attached an image to this request.
Thank you in advance!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1130630/image.png)
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 20 Sep. 2022
y=[1 1 1 1 1 0 0 0 0 1 1 0 1 0 1 1 0 0 0 0 0 0 0];
i=find(diff(y)==-1)+1
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing 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!