⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 practise.m

📁 lms算法的自己编的程序 包括各种影响因素的分析等等 包括运行结果分析图
💻 M
字号:
t=-3:0.01:3;
y1=square(2*pi*t,80);
y2=sawtooth(2*pi*t,0.5);
y3=sinc(2*pi*t);
x=-12:0.01:12;
y4=diric(x,4);
y5=diric(x,5);
figure(1)
subplot(2,2,1)
plot(t,y1,'r--',t,y2,'b--')
xlabel('t');
ylabel('y1=square(2*pi*t,80)----------y2=sawtooth(2*pi*t,0.5)')
legend('\ity=fangbo','\ity=sanjiaobo');
title('fangbo  he  sanjiao  qu xian ');
grid on;
subplot(2,2,2)
plot(t,y3,'k');
grid on;

subplot(2,2,3);
plot(x,y4,'')
grid on;
subplot(2,2,4);
plot(x,y5,'g');
grid on;
hold on;
figure(2)
%a=0.4*randn(1,20)+3;
%b=0.8*randn(1,30)+1;
[A,B]=meshgrid(-3:0.1:3);
C=peaks(A,B);
m=ones(size(C));
surfc(A,B,C,m)
grid on 


⌨️ 快捷键说明

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