Extracting time values when specific conditions are met

조회 수: 2 (최근 30일)
Dooyoung Kim
Dooyoung Kim 2018년 7월 2일
답변: KSSV 2018년 7월 2일
Hi! I've been trying to calculate response times to the repetition of an event. Whenever an image was repeated, ChangeReg value is 0. I want to extract time values when there was a repetition and when there was a response and store them in a new column to calculate the response time. I would appreciate any tips! I attached a screen shot of the table.

답변 (1개)

KSSV
KSSV 2018년 7월 2일
YOu need read the excel file data into matlab first and then use logical indexing.
[num,txt,raw] = xlsread(myfile) ;
Now, you can use logical indexing to extract the data you want.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by