findtrigs(trigger_c​han,varargin)

finds trigger onset/offset from TTL trig channel
ダウンロード: 46
更新 2016/2/17

ライセンスの表示

% ----------[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
% --------------------------------------------------------------------------

引用

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

MATLAB リリースの互換性
作成: R2013a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersFrequently-used Algorithms についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0