代码搜索结果

找到约 10,000 项符合 Raspberry Pi 的代码

s43.m

%a26.m M=21;alpha=(M-1)/2;l=0:M-1;wl=(2*pi/M)*l; Hrs=[1,1,1,1,zeros(1,13),1,1,1,1]; Hdr=[1,1,0,0];wdl=[0,0.35,0.35,1]; k1=0:floor((M-1)/2);k2=floor((M-1)/2)+1:M-1; angH=[-alpha*(2*pi)/M*(k1+0.5),

main.c

/*-------------------------------------------文件main.c----------------------------------------------*/ #include "key.c" #include "miner.c" int main(){ int gameRes; /*记录游戏结束的结果状态:0表示退出游戏;-1游戏失败;

gngauss.m

function[gsrv1,gsrv2]=gngauss(m,sgma) if nargin==0, m=0;sgma=1; elseif nargin==1, sgma=m;m=0; end; u=rand; z=sgma*(sqrt(2*log(1/(1-u)))); u=rand; gsrv1=m+z*cos(2*pi*u); gsrv2=m+z*sin

gngauss.m

function[gsrv1,gsrv2]=gngauss(m,sgma) if nargin==0, m=0;sgma=1; elseif nargin==1, sgma=m;m=0; end; u=rand; z=sgma*(sqrt(2*log(1/(1-u)))); u=rand; gsrv1=m+z*cos(2*pi*u); gsrv2=m

crule.m

function [bp,wf]=crule(m) %usage: [bp,wf]=crule(m) % This function computes Gauss-Chebyshev base points and weight factors % using the algorithm given by somebody in 'SomeBook', % page 365, Academ

cm_f34.m

% script that generates the figure 3.4 of Carrier modulation chapter snrindB=0:0.25:18; for i=1:length(snrindB), snr=10^(0.1*snrindB(i)); P2(i)=Qfunct(sqrt(2*snr)); P4(i)=2*Qfunct(sqrt(4*sn

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

iir.m

close all,clear all ,clc; mp1=2*tan(0.2*pi/2);mp2=2*tan(0.3*pi/2);ms1=2*tan(0.1*pi/2);ms2=2*tan(0.4*pi/2);%预畸变 r=mp2-mp1; %参考频率 rp1=mp1/r;rp2=mp2/r;rs1=ms1/r;rs2=

fir.m

close all,clear all,clc; N=(40-7.95)/2.286/(0.15*pi); N=round(N)+1 %N取奇数 omega=[0.15*pi,0.3*pi,0.5*pi,0.65*pi]; wc1=(omega(1)+omega(2))/2; %理想带通的截止频率 wc2=(om