fendun.m

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

M
49
字号
x=1:1:200;

y=randCL(1,200,0.5,0.4);
subplot(231);
plot(x,y,'r');
axis([0,200,0,1]);
title('Logistic(u=0.4)');
xlabel('n');
ylabel('x(n)');

y=randCL(1,200,0.5,2.4);
subplot(232);
plot(x,y,'r');
axis([0,200,0,1]);
title('Logistic(u=2.4)');
xlabel('n');
ylabel('x(n)');

y=randCL(1,200,0.5,3.2);
subplot(233);
plot(x,y,'r');
axis([0,200,0,1]);
title('Logistic(u=3.2)');
xlabel('n');
ylabel('x(n)');

y=randCL(1,200,0.5,3.5);
subplot(234);
plot(x,y,'r');
axis([0,200,0,1]);
title('Logistic(u=3.5)');
xlabel('n');
ylabel('x(n)');

y=randCL(1,200,0.5,3.8);
subplot(235);
plot(x,y,'r');
axis([0,200,0,1]);
title('Logistic(u=3.8)');
xlabel('n');
ylabel('x(n)');

y=randCL(1,200,0.5,3.9);
subplot(236);
plot(x,y,'r');
axis([0,200,0,1]);
title('Logistic(u=3.9)');
xlabel('n');
ylabel('x(n)');

⌨️ 快捷键说明

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