代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
ziran.m
clear all;
close all;
clc;
N=8;
zpb=13.5;
c=1500;
f0=1500;
fs=5000;
nfft=512;
A=2;
d=0.4;
n=1:nfft;
w=2*pi*f0;
s=zeros(N,nfft);
y=[];
for x=-pi/2:pi/180:pi/2
tao=d*(sin(x)-sin(0))/
forwardloss_fig4.m
clear all;
close all;
clc;
h0=0.01;
beta=0.002070*10^(-8);
loss=0.0173;
density=1.3394;
v=1.08;
gam=3.25;
c=1500;
f=35000;
lamda=c/f;
k=2*pi/lamda;
theta=(0:1:90)*pi/180;
%Kirchhoff Appr
forwardloss_fig6.m
clear all;
close all;
clc;
h0=0.01;
beta=0.002070*10^(-8);
loss=0.0153;
density=1.1782;
v=1.006;
gam=3.25;
c=1500;
f=35000;
lamda=c/f;
k=2*pi/lamda;
theta=(0:1:90)*pi/180;
%Kirchhoff App
forwardloss_fig5.m
clear all;
close all;
clc;
h0=0.01;
beta=0.002070*10^(-8);
loss=0.0087;
density=1.15;
v=0.989;
gam=3.25;
c=1500;
f=35000;
lamda=c/f;
k=2*pi/lamda;
theta=(0:1:90)*pi/180;
%Kirchhoff Appro
fplotjb.m
clear
clc
subplot(2,2,1), fplot('humps',[0 1])
subplot(2,2,2), fplot('abs(exp(-j*x*(0:9))*ones(10,1))',[0 2*pi])
subplot(2,2,3), fplot('[tan(x),sin(x),cos(x)]',2*pi*[-1 1 -1 1])
subplot(2,2,4), f
x6.m
n=0:35;
m=0:63;
T=1/64;
x=cos(8*pi*n*T)+cos(16*pi*n*T)+cos(20*pi*n*T);
close all
subplot(2,1,1);stem(n,x); title('X6(t)的序列图形');
subplot(2,1,2); stem(m,abs(fft(x,64))) ;titl
x4x5.m
n=0:16;
m=0:15;
a=cos((pi/4)*n);
b=sin((pi/8)*n);
c=a+b;
g=fft(c,16);
subplot(4,1,2);
stem(m,abs(g)) ; title('X4(t)+X5(t)的序列16点的FFT');
d=real(g);
e=imag(g);
f=ifft(d);
subplot
yanzheng.m
%
k=-25:25;
n=1:50;
A=444.128; %设置信号有关的参数
a=50*sqrt(2.0)*pi;
T=0.001; %采样率
w0=50*sqrt(2.0)*pi; %ω符号在MatLab中不能输入,用w代替
x=A*exp(-a*n*T).*sin(w0*n*T); %pi是MATL
xa2.m
n=0:50;
A=1; a=0.4; w0=2.0734; T=1;
x=A*exp(-a*n*T).*sin(w0*n*T);
close all %清除已经绘制的x(n)图形
subplot(2,1,1);stem(x); %绘制x(n)的图形
title('理想采样信号序列');
k=-25:25;
W=(pi/12.5)*
haukuai.m
function huakuai(A,B,D,R0,DR,S0,N,E)
x=0;
while x==0
dr=DR/N;
R=zeros(1,N+1);S=zeros(1,N+1);Q=zeros(1,N+1);V=zeros(1,N+1);
for i=0:N
R(i+1)=R0+i*dr;
S(i+1)=A*(sin(R(i+1)*pi/180)-sin(R0*