⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 synsim.m

📁 MATLAB应用工具箱, MATLAB应用工具箱,
💻 M
字号:
%synsim - simulates a synapse%%   [s,t] = synsim( par, T, spikes ) simulates a%   synapse that receives an input spike train%   'spikes' (an array of spike times in msec)%   for 'T' msec. The synaptic parameters are%   passed in the structure 'par' with entries%%      par.Isatmax = synaptic saturation%      par.Itau    = synaptic time constant (ms)%%   synsim returns the synaptic variable 's' at%   the time points 't'.%%   Note: This "wrapper" function is not autonomous but%   needs the compiled version of the C-program ccsynsim%   (c) 2004 CK Machens & CD Brody%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function [s,t] = synsim( par, T, spikes )G.dt =  0.1;          %in msecG.t   = 0:G.dt:T;G.Nt  = length(G.t);if (isempty(spikes))  s = zeros(1,G.Nt);  return;end%integrate-and-fire neuron parametersG.satmax      =    par.Isatmax;G.tau         =    par.Itau;%input and output variablesG.nspikes  = length(spikes);G.spikes  = spikes;G.s       = zeros(1,G.Nt);ccsynsim(G);s = G.s;t = G.t;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -