create_powerlaw_samples.m
来自「三谱混合相位子波估计!! 这是我的一篇文章所涉及到的matlab 源代码」· M 代码 · 共 19 行
M
19 行
function mat=create_powerlaw_samples(nsamp,ntr,power,seed)
randn('state',seed);
temp=randn(nsamp,ntr);
temp1=fft(temp);
f=(0:nsamp)';
f=min(f(1:end-1),f(end:-1:2));
f(1)=eps;
f=f.^power;
f(1)=eps;
for ii=1:ntr
temp1(:,ii)=temp1(:,ii).*f;
end
mat=ifft(temp1);
mat=real(mat);
for ii=1:ntr
mat(:,ii)=mat(:,ii)*norm(temp(:,ii))/norm(mat(:,ii));
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?