Get column E based on transition in Column I

조회 수: 1 (최근 30일)
Kcire L
Kcire L 2022년 9월 20일
답변: Dyuman Joshi 2022년 9월 20일
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!

채택된 답변

Dyuman Joshi
Dyuman Joshi 2022년 9월 20일
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
i = 1×4
6 12 14 17

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by