Duty cycle (inhalation & exhalation)
We can compute the time of inhale, exhale and the inspiratory duty cycle (inhale/(inhale + exhale).
1. Inhalation
We export the time in seconds from the inspire start to the expire start marker. This time reflects the duration of the inhalation.
In the channel calculation pane, select CH2, Respiration for the first window. We only need time.
Time
→ this variable will be exported into the spreadsheet.
Select the channel 2
Analysis → Find cycle →
Events/Peaks
Events
Start event:
Inspire start
CH2, Respiration
End event:
Expire start
CH2, Respiration
Selection
Zero to zero
Check box for “Match pairs of events”
Output
Export excel spreadsheet
2. Exhalation
NOTE: this is the opposite of the previous step.
We export the time in seconds from the expire start to the inspire start marker. This time reflects the duration of the exhalation.
In the channel calculation pane, select CH2, Respiration for the first window. We only need time.
Time
→ this variable will be exported into the spreadsheet.
Select the channel 2
Analysis → Find cycle →
Events/Peaks
Events
Start event:
Expire start
CH2, Respiration
End event:
Inspire start
CH2, Respiration
Selection
Zero to zero
Check box for “Match pairs of events”
Output
Export excel spreadsheet
3. Duty cycle
Use the time column from the inspiration and the time column from the expiration to calculate the duration of inhale and exhale.
Check whether your focus area started with an inhale or an exhale. If it started with an exhale, the column of the inspiration needs to be moved down by one cell so it starts with an empty cell.
Inhale duration: Create a new column, in which you subtract the exhale from the inhale (“=SUB(exhale:inhale)”). Draw the function all the way down. Delete cells that show zeroes, i.e. where there was no matching inhale to an exhale or vice versa.
Exhale duration: Repeat step 2 but reverse; subtract each inhale from the PREVIOUS exhale.
Duty cycle: Create a third column and use this formula “=Inhale/(Inhale+Exhale)” (these refer to the cells, not to the words).
ADD SCRENSHOT
1. Import columns into Matlab
This is to plot the shape of the responses to challenges.
2. Compute variables across the whole task period
This is mostly relevant for Rest and Meditation, where there are no challenge responses.
Compute the means and standard deviation for each column:
Click in an empty cell, type “=AVERAGE()” → inside the parentheses, select your column values from top to bottom
Do the same for “=STDEV”
“=MEDIAN”
“=MIN”
“=MAX”