Differences

This shows you the differences between two versions of the page.

Link to this comparison view

reference:ft_spike_plot_jpsth [2018/08/23 14:43] (current)
Line 1: Line 1:
 +=====  FT_SPIKE_PLOT_JPSTH =====
 +
 +Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help ft_spike_plot_jpsth"​.
 +
 +<​html><​pre>​
 +  <a href=/​reference/​ft_spike_plot_jpsth><​font color=green>​FT_SPIKE_PLOT_JPSTH</​font></​a>​ makes a plot from JPSTH structure.
 + 
 +  Use as
 +    ft_spike_plot_jpsth(cfg,​ jpsth)
 + 
 +  Inputs:
 +    JPSTH must be the output structure from <a href=/​reference/​ft_spike_jpsth><​font color=green>​FT_SPIKE_JPSTH</​font></​a>​ and contain the
 +    field JPSTH.avg. If cfg.psth = '​yes',​ the field JPSTH.psth must be
 +    present as well.
 + 
 +  General configurations:​
 +    cfg.channelcmb ​ = string or index of single channel combination to trigger on.
 +        See SPIKESTATION_FT_SUB_CHANNELCOMBINATION for details.
 +    cfg.psth ​       = '​yes'​ (default) or '​no'​. Plot PSTH with JPSTH if '​yes';​
 +    cfg.latency ​    = [begin end] in seconds or '​max'​ (default), '​prestim'​ or '​poststim';​
 +    cfg.colorbar ​   = '​yes'​ (default) or '​no'​
 +    cfg.colormap ​   =  N-by-3 colormap (see COLORMAP). or '​auto'​ (default,​hot(256))
 +    cfg.interpolate ​     = integer (default = 1), we perform interpolating
 +                           with extra number of spacings determined by
 +                           ​cfg.interpolate. For example cfg.interpolate = 5
 +                           means 5 times more dense axis.
 +    cfg.window ​     = '​string'​ or N-by-N matrix
 +      '​no': ​          apply no smoothing
 +      ' gausswin' ​    use a Gaussian smooth function
 +      ' boxcar' ​      use a box-car to smooth
 +    cfg.gaussvar ​   =  variance ​ (default = 1/16 of window length in sec).
 +    cfg.winlen ​     =  cfg.window length in seconds (default = 5*binwidth).
 +      length of our window is 2*round*(cfg.winlen/​binwidth)
 +      where binwidth is the binwidth of the jpsth (jpsth.time(2)-jpsth.time(1)).
 + 
 +  See also <a href=/​reference/​ft_spike_jpsth><​font color=green>​FT_SPIKE_JPSTH</​font></​a>,​ <a href=/​reference/​ft_spike_psth><​font color=green>​FT_SPIKE_PSTH</​font></​a>​
 +</​pre></​html>​