代码搜索结果

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

intsin.c

#include "headDefine.h" //Use the Sine functoid () to return the sine of an angle. //producing value of sine by accessing the table of sine int intSin(unsigned long Theta)//Theta is expressed

sy12.m

N=64;f1=1/16; n=[0:1:N-1]; xn=sin(2*pi*0.15*n)+cos(2*pi*(0.15+f1)*n)+cos(2*pi*(0.15+2*f1)*n) subplot(2,2,1); stem(n,xn); title('x(n)');xlabel('n'); axis([0,N,-2.5,5.5]); set(gca,'fontsize',10) X

sy11.m

N=40;n=[0:N-1]; t=0.01*n; x=2*sin(4*pi*t)+5*cos(8*pi*t); k=[0:1:N/2];w=2*pi/N*k; X=fft(x,N)' magY=abs(X(1:1:N/2+1)); subplot(2,2,1);stem(n,x,'.');title('signal x(n)');grid; subplot(2,2,2);plot(

sy13.m

q=8; p=8; n=[0:1:15];y=exp(-((n-p).^2)/q); subplot(2,1,1);stem(y(1:16));title('noise time domain signal'); Y=fft(y,16); magY=abs(Y(1:1:9)); k=0:1:8;w=2*pi/16*k; subplot(2,1,2);plot(w/pi,magY),t

sy21.m

Rp=1.5;Rs=40;T=0.001;fp=0.3;fs=0.2; wp=2*pi*fp;ws=2*pi*fs; wp1=(2/T)*tan(wp/2); ws1=(2/T)*tan(ws/2); [n,wn]=cheb1ord(wp1,ws1,Rp,Rs,'s'); % 求阶数n ,3dB截止频率wn [z,p,k]=cheb1ap(n,Rp);

c2cxrad2.mac

****************************************************************************** * FILE: c25cxrad2.mac --> macro file for radix 2 fft's based on 320c5x * *

rlasymp.m

function [wpos,ypos]=rlasymp(G) G=zpk(G); zer=G.z{1}; pol=G.p{1}; gain=G.k; ii=find(abs(zer)0, zer=zer(ii); end nExcess=length(pol)-length(zer); if nExcess>0 pp=(sum

mncirc.m

function [h1,h2]=mncirc(M,N) if nargin==1, N=[1/3,1/4,1/6,1/12]*pi; N=[-N(end:-1:1),N]; elseif nargin==0 M=[1.3,1.4,1.5,2,3]; M=[M, 1./M]; N=[1/3,1/4,1/6,1/12]*pi; N=[-N(end:-1:1),N];

fzz.m

function [A0,A,B]=FZZ(func,T, n) syms t; func = subs(sym(func), findsym(sym(func)),sym('t')); A0=int(sym(func),t,-T/2,T/2)/T; for(k=1:n) A(k)=int(func*cos(2*pi*k*t/T), t,-T/2,T/2)*2/T; A

gaussian_pulse.m

% %function p = pulse(t,tau) % function p = gaussian_pulse(A,t,alpha) p = A*exp(-2*pi*(t/alpha).^2); return