jitteredsinewave.m
来自「toolbox of sdt implementation」· M 代码 · 共 16 行
M
16 行
function out = jitteredSinewave(time,Amplitude,Bias,Freq,Phase,SampJ)
% Generates a sine wave with sampling jitter, the derivative of the signal is
% analytically calculated (by A. Fornasari, P. Malcovati)
%
% out = jitteredSinewave(time,Amplitude,Bias,Freq,Phase,SampJ)
%
% time: Current time
% Amplitude: Amplitude of the sinusoid
% Bias: DC value of the sinusoid
% Freq: Frequency of the sinusoid in rad/s
% Phase: Initial phase of the sinusoid in rad
% SampJ: Stadard deviation of the sampling jitter in s
%
% out: Jittered sinewave
out=Bias+Amplitude*sin(Freq*time+Phase)+Freq*Amplitude*cos(Freq*time+Phase)*SampJ*randn;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?