====== Differences ====== This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
analysis:nsb2016:week6 [2016/07/04 22:40] mvdm created |
analysis:nsb2016:week6 [2018/04/17 15:20] (current) |
||
---|---|---|---|
Line 431: | Line 431: | ||
☛ What strategies can you think of to evaluate the accuracy and precision of the above detection? How might the workflow be improved? | ☛ What strategies can you think of to evaluate the accuracy and precision of the above detection? How might the workflow be improved? | ||
+ | === Optional extra: inspecting detected events with spectrograms === | ||
+ | |||
+ | <code matlab> | ||
+ | % TFR version -- make sure FieldTrip is added to your path (see Module 1) | ||
+ | cfg_convert = []; cfg_convert.mode = 'resample'; | ||
+ | csc_ft = TSDtoFT(cfg_convert,csc); & convert tsd to FieldTrip format | ||
+ | | ||
+ | evt_temp = evt; % FieldTrip assumes everything starts at time 0 | ||
+ | evt_temp.tstart = evt_temp.tstart-csc.tvec(1); | ||
+ | evt_temp.tend = evt_temp.tend-csc.tvec(1); | ||
+ | |||
+ | cfg_temp = []; cfg_temp.foi = 1:5:300; cfg_temp.clim = [0 10^-9]; cfg_temp.twin = [-0.1 0.1]; | ||
+ | PlotTSDfromIV_TFR(cfg_temp,evt_temp,csc_ft); | ||
+ | </code> |