findtrigs(trigger_c​han,varargin)

finds trigger onset/offset from TTL trig channel
46 download
Aggiornato 17 feb 2016

Visualizza la licenza

% ----------[Lindex,Sindex] = findtrigs(trigger_chan,varargin)-------------
%
% Finds stim indexes from TTL stim channel given user-defined min/max
% thresholds for stims.
%
% >>> INPUTS >>>
% Required:
% trigger_chan: trigger data
% Optional:
% Lthresh: min, max for stim (i.e. [.2 .6])
% Fs: sampling rate...to return stim times in seconds
% mpd: minimum distance between peaks in samples (default = 0)
%
% <<< OUTPUTS <<<
% StimOn: time (in samples) of stim
% StimOff: time (in samples) of off-times of stim
% StimIndex: indicies of stims found (useful if stim channel has
% multiplexed stimuli)
% StimThrsh: output thresh for stims (to use in loop if desired)
%
% by JMS, 09/29/2015
% --------------------------------------------------------------------------

Cita come

Jordan Sorokin (2024). findtrigs(trigger_chan,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/55458-findtrigs-trigger_chan-varargin), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2013a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Frequently-used Algorithms in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0