spikegauss

버전 2.0.0.0 (3.6 KB) 작성자: R P
Generate spike vector time series (SPKVEC) from the TIMESTAMPS of the spikes.
다운로드 수: 408
업데이트 날짜: 2016/3/30

라이선스 보기

Generate SPKVEC time series from TIMESTAMPS.

Syntax:
[spkvec,timevec,updatedpeak]=spikegauss(timestamps,srate,min_timevec,max_timevec,sigma,peak)

Each spike is represented by a gaussian centered on each of the TIMESTAMPS
SRATE is the sampling rate of the generated time series
MIN_TIMEVEC and MAX_TIMEVEC are the limits the generated time series
SIGMA is the standard deviation
PEAK is the value of the peak of the gaussian (use peak=0 for gaussian
integral = 1; thus sum(spkvec) is equal to the number of spikes)


Example:

timestamps=[-1.22 0.33 0.34 0.35 0.40 3.70 7.30]; % sec
srate=1000; % Hz
min_timevec=-4; % sec
max_timevec=8; % sec
sigma=0.1; % sec
peak=0;

[spkvec,timevec,updatedpeak]=spikegauss(timestamps,srate,min_timevec,max_timevec,sigma,peak);

plot(timevec,spkvec,'k')
hold on
plot([min_timevec max_timevec],[1 1]*updatedpeak,'-r')
plot(timestamps,rand(size(timestamps))/10*updatedpeak+updatedpeak,'ob')
hold off

인용 양식

R P (2024). spikegauss (https://www.mathworks.com/matlabcentral/fileexchange/41248-spikegauss), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
2.0.0.0

New version, using conv function, with inputs (sigma and peak).

1.0.0.0