CSPM Physiology

Peak detection and rate calculation

Load data

For example, use Import Data

Separate by semicolon, unselect by comma

For datetime, select DATE?TIIME, more date formats

Go to end, under Custom Date Format enter HH:mm:ss,SSS

Chnage the variable names - X and Resp, for example.

Select both columns, then Import Selection

You can check the data with

>>figure, plot(X,Resp)

Run the peak detection (use the variables names, with the Time/x-value as the second argument)

>>Pout = peakdetect_gui( X, Time )

Create the rate, etc, and when you close the values will be in the "Pout" structure.

For example, rate is in Pout.ratey (values), with Pout.ratex indicating the time of each value.

Calculate means:

>>mean(Pout.ratey)