gonglvpu.m

来自「伪随机数发生器: “利用随机序列进行间隔控制」· M 代码 · 共 41 行

M
41
字号
y=randCL(1,200,0.5,0.4);
ts=0.001;
fs=1/ts;
psd=spectrum(y,1024);

subplot(231);
specplot(psd,fs);
title('Logistic(u=0.4)');
y=randCL(1,200,0.5,2.4);
ts=0.001;
fs=1/ts;
psd=spectrum(y,1024);

subplot(233);
specplot(psd,fs);
title('Logistic(u=3.2)');
y=randCL(1,200,0.5,3.5);
ts=0.001;
fs=1/ts;
psd=spectrum(y,1024);

subplot(234);
specplot(psd,fs);
title('Logistic(u=3.5)');
y=randCL(1,200,0.5,3.8);
ts=0.001;
fs=1/ts;
psd=spectrum(y,1024);

subplot(235);
specplot(psd,fs);
title('Logistic(u=3.8)');
y=randCL(1,200,0.5,3.9);
ts=0.001;
fs=1/ts;
psd=spectrum(y,1024);

subplot(236);
specplot(psd,fs);
title('Logistic(u=3.9)');

⌨️ 快捷键说明

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