代码搜索:Raspberry Pi
找到约 10,000 项符合「Raspberry Pi」的源代码
代码结果 10,000
www.eeworm.com/read/303498/13814335
m e0550.m
syms x
syms p real
int(1/x^p,x,1,inf)
%对第二个积分输入命令:
int(1/(2*pi)^(1/2)*exp(-x^2/2),-inf,inf)
%对后一个积分输入命令:
int(1/(1-x)^2,0,2)
www.eeworm.com/read/303498/13814348
m e0602.m
x=1:pi/100:4;
y=2*exp(-0.5*x).*log(2*pi*x);%y的结果为数组乘运算
plot(x,y)
www.eeworm.com/read/303498/13814397
m e0605.m
x=-pi:pi/10:pi;xx=x+(x==0&x==pi&x==-pi)*eps;%补充真数为零的点
yy=log(abs(sin(xx)));plot(x,yy)
title('This is figure of the five example. '); %给图形加上标题
axis([-3.2 3.2 -45 0])
xlabel('x'),ylabel('yy');grid o
www.eeworm.com/read/303498/13814405
m e0603.m
x=0:pi/100:2*pi;y1=2*sin(2*x);y2=3*sin(3*x);
plot(x,y1,x,y2)%在同一个坐标系分别绘制二维图形
title('This is figure of the third example. '); %给图形加上标题
xlabel('x'); %给x轴加标注
ylabel('y');
legend('2*sin(2*x)' ,'3*
www.eeworm.com/read/302999/13823953
m 1.误差和误差平方曲线.m
S=sqrt(0.05)*randn(1000,1); %产生一个白噪声序列S(n)
H=[3; -4]; %初始滤波器系数H(0)
T=[0 0];
T2=[0 0];
e=0;
e2=0;
for n=0:1:300 %LMS迭代
y=sin(pi/8*(n+1)+pi/10)+S(n+
www.eeworm.com/read/302999/13823954
m 2.平均迭代轨迹曲线.m
[h0,h1]=meshgrid([-4:0.2:4]); %确定滤波器系数H(n)的范围
J=0.55+h0.^2+h1.^2+2*h0.*h1*cos(pi/8)-sqrt(2)*h0*cos(pi/10)-sqrt(2)*h1*cos(pi/40*9);
%计算各组系数下的误差性能J(H)
axis([-4,4,-4,
www.eeworm.com/read/302994/13823974
m 3.迭代轨迹曲线.m
[h0,h1]=meshgrid([-4:0.2:4]); %确定滤波器系数H(n)的范围
J=0.55+h0.^2+h1.^2+2*h0.*h1*cos(pi/8)-sqrt(2)*h0*cos(pi/10)-sqrt(2)*h1*cos(pi/40*9);
%计算各组系数下的误差性能J(H)
axis([-4,4,-4,4])
www.eeworm.com/read/302615/13831191
m exp2_4_.m
close all
clc
clear
%定义时间范围
t=[0:pi/20:9*pi];
hold on %允许在同一坐标系下绘制不同的图形
plot(t,sin(t),'r:*')
plot(t,cos(t))
plot(t,-cos(t),'k')
grid on %在所画出的图形坐标中添加栅格,注意用在plot之后
hold off %覆盖旧图
www.eeworm.com/read/302615/13831199
m exp2_4.m
close all
clc
clear
%定义时间范围
t=[0:pi/20:9*pi];
figure(1) %选择图像
plot(t,sin(t),'r:*')
grid on %在所画出的图形坐标中添加栅格,注意用在plot之后
grid off %删除栅格
figure(2)
plot(t,cos(t))
grid on
grid off
www.eeworm.com/read/302615/13831331
txt ch2_4.txt
close all
clc
clear
%定义时间范围
t=[0:pi/20:9*pi];
figure(1) %选择图像
plot(t,sin(t),'r:*')
grid on %在所画出的图形坐标中添加栅格,注意用在plot之后
grid off %删除栅格
figure(2)
plot(t,cos(t))
grid on
grid off