代码搜索结果

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

ejer1_3.m

t=0:0.01:3; f=3*exp(-j*2*pi.*t+(pi/4)); figure(1) subplot(2,2,1) plot(t,real(f)) subplot(2,2,2) plot(t,imag(f)) subplot(2,2,3) plot(t,abs(f)) subplot(2,2,4) plot(t,angle(f))

my_filter.m

%%%%%%%%%%%%%%%%%%% fir滤波因子的设计 %%%%%%%%%%%%%%% T=0.002; % 采样间隔 f0=60; % 截止频率 N=129; % 采样点为(2*N+1) for k=1:N-1 h(N-k)=sin(-k*2*pi*f0*T)/(-pi*k); h(N)=0; h(k+N)=sin(-k*2*p

1593.cpp

#include using namespace std; void main() { double R,r,v1,v2,pi=3.14159265358979; while(cin>>R>>v1>>v2){ r=v1*R/v2; (R-r)/v1

2002.cpp

#define PI 3.1415927 #include int main() { double r; while(scanf("%lf",&r)!=EOF&&r>0) printf("%.3f\n",4*PI*r*r*r/3); }

ex0101.m

function ex0101() x=0:pi/15:2*pi; y1=0.5*x.^2; y2=10*sin(x); plot(x,y1,'r.-',x,y2); grid xlabel('variable x') ylabel('variable y') title('x^2 and sin(x)'); text(6.2,-5.5,'sin(x)'); text(6.2,

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

ex1001.m

function ex1001() subplot(1,2,1),fplot('sin(x)/(pi*x)', [-3*pi,3*pi]); title('时域图') hold on; subplot(1,2,2),fplot('-heaviside(x-1)+heaviside(x+1)',[-3,3]); title('傅氏变换后的频域图'); axis([-3 3 0 1.5])

exa060603.m

%---------------------------------------------------------------------------- % exa060603.m, for example 6.6.3; % To design IIR Butteworth bandstop DF by analog-lowpass, % -------------------------

exa011004_sinc.m

%----------------------------------------------------------------- % exa011004_sinc.m, for example 1.10.4 % to generate the sinc function. % 产生一 sinc 函数; %-----------------------

exa050501.m

%------------------------------------------------------------------------ % exa050501.m, for example 5.5.1 and fig5.5.1 % to explain the spectra factorization %------------------------------------