代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
recursiveifft.m
function y=RecursiveIFFT(a) %递归IFFT
n=length(a); %向量的长度
if n==1
y=a; %递归出口
else
wn=complex(cos(2*pi/n),sin(2*pi/n)
examp10_14.m
ezplot('x*sin(10*pi*x)+2',[-1,2])
f=inline('-x.*sin(10*pi*x)-2','x'); v=[];
for x0=[-1:0.8:1.5,1.5:0.1:2]
x1=fmincon(f,x0,[],[],[],[],-1,2); v=[v; x0,x1,f(x1)];
end
[a,b,c,d]=gaopt([-1,2]
mus_md.asv
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 空间谱估计中 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
close all
clc
%%%%%%%%%%%%%%%%%%%%%%% generate signal %%%%%%%%%%%%%%%%%
f0=5000;
mus_md.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 空间谱估计中 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
close all
clc
%%%%%%%%%%%%%%%%%%%%%%% generate signal %%%%%%%%%%%%%%%%%
f0=5000;
music_smooth.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 空间谱估计中 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
close all
clc
%%%%%%%%%%%%%%%%%%%%%%% generate signal %%%%%%%%%%%%%%%%%
f0=5000;
ex_07_07_1.m
% ex_07_07_1.m : 习题 7.7
clear all;
N=31;
for i=0:N-1
w(i+1)=abs(sin(2*pi*i/N))/pi-(1-2*abs(i-N/2)/N)*cos(2*pi*i/N);
end
[W,f]=freqz(w,1,256,'whole',1);
subplot(221);
t=0:N-1;
stem(t,w
ex_07_05_1.m
% ex_07_05_1.m : 习题 7.5
clear all;
order = 54;
f = [0, 0.05, 0.1, 0.15, 0.18, 0.25, 0.3, 0.36, 0.41, 0.5] * 2;
a = [0, 0, 1, 1, 0, 0, 1, 1, 0, 0];
wtx = [1, 10, 1, 10, 1];
b = firpm(order, f
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
fm.m
function y = FM(x,beta)
[r, c] = size(x);
if r*c == 0
y = [];
return;
end;
if (r == 1)
x = x(:);
len = c;
else
len = r;
end;
Df = 2*pi*beta*100;
x = interp(x,20)
ex10_5.m
t=0:pi/20:2*pi;
y1=sin(t);
y2=cos(t);
figh=figure('Position',[30,100,800,350]);
axes('GridLineStyle','-.','XLim',[0,2*pi],'YLim',[-1,1]);
line('XData',t,'YData',y1,'LineWidth',2);
line(t,y2);
g