代码搜索结果

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

integrandfunc.m

function [f]=integrand(eta,sita,u,f0,q) g=9.8; c=3*10^8; k0=2*pi*f0/c; [m1,m2]=mfunc(eta); y=calculateyfunc(eta,sita,m1,m2); f1=P1func(y,sita,m1,m2); f2=S1func(y,sita,m1,k0,u,q);

04-07.txt

/* 范例:4-7 */ #include #include void main() { char name[20]; char sex; int age; float pi; printf("请输入您的姓名:"); scanf("%s",name); /* #1 */ printf("请输入您的性别(

rootmusic.m

%function [p]=Music(void) f01=22; f02=36; N=1024; s1=20*sin(f01*(1:N)/N); s2=20*sin(f02*(1:N)/N); % a=randn(1,N); zeta1=pi/6; zeta2=pi/3; % s1=a.*cos(2*pi*f01*(1:N)/N); % s2=a.*cos(2*pi* f

gngauss.m

function [X,Y]=gngauss(m,sgma,s1,s2,k) if nargin==0 m=0; sgma=1; elseif nargin==1 sgma=m;m=0; end U1=uniform(s1,k); Z=sgma*(sqrt((-2)*log(1-U1))); U2=uniform(s2,k); X=m+Z.*cos(2*

rs分析.m

clear h=0.005;t=0:h:1; x=12*sin(2*pi*10*t+pi/4)+5*cos(2*pi*40*t); X=fft(x);f=t/h; subplot(2,1,1) plot(t,x) subplot(2,1,2) plot(f(1:floor(length(f)/2)),abs(X(1:floor(length(f)/2)))) figure(2)

tableq15.h

#ifndef TABLEQ15_H #define TABLEQ15_H // ================================================================ // define lookup table in Q1.15 format // // // OneOverSqrt3Q1_15=1/sqrt(3) // // SinV

powerpeaks.m

function [pi,y] = PowerPeaks(x,fsa,fca,pa,xma); %PowerPeaks: Finds peaks in the lowpass filtered signal power % % [pi,x] = PowerPeaks(x,fs,fc,pw,xm); % % x Input signal. % fs Signal samp

feedb.m

% feedbl.m % 反馈线性化 % 初始化 clear X1 = [rand(1,300)*pi, rand(1,100)*pi]; X2 = [rands(1,300)*pi, zeros(1,100) ]; P = [X1; X2]; dt = 0.05; T= X2 + dt*(10*sin(X1)-2*(X2)); [R,Q] = size(P); S1

ex050800.m

% Chapter 05: Example 05.08: HiRes Spectrum % % High resolution spectrum based on 100 samples of the signal x(n) subplot(1,1,1) n=[0:1:99]; x=cos(0.48*pi*n)+cos(0.52*pi*n); subplot(2,1,1);stem(n

ex050600.m

% Chapter 05: Example 05.06: Simple DFT Example % x = [1,1,1,1]; subplot(1,1,1); % % a) DTFT w = [0:1:500]*2*pi/500; [H] = freqz(x,1,w); magH = abs(H); phaH = angle(H); phaH(126)=-47.5841*pi/1