代码搜索结果

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

harmwavelet.m

t=-6:0.01:6; we=2*sinc(4*t)-sinc(2*t); wo=4*pi*t.*[sinc(2*t)].^2-pi*t.*[sinc(t)].^2; w=we+i*wo; %figure(1); subplot(121); plot(t,real(w)); Xlabel('t/s'); Ylabel('Re(w(t))'); %figure(2); subp

bpasfilter.m

%问题: 设信号x(t)=sin(2*pi*80*t)+2*sin(2*pi*150*t), 由于某一原因, %原始信号被白噪声污染,实际获得的信号为x2(t)=x+rand(size(x)), %要求设计一个FIR滤波器恢复出原始信号。 clear all; close all; t=0.0:0.001:2.047; x=sin(2*pi*80.*t);%+2*sin(2*pi*15

display.cpp

#include #include #include #include 在Visual c++ 2005中,头文件为stdafx.h下,需加代码如上 #include using namespace std; const double pi=3.1415; float

show_tan.c

#include #include void main(void) { double pi = 3.14159265; printf("Tangent of pi is %f\n", tan(pi)); printf("Tangent of pi/4 is %f\n", tan(pi / 4.0)); }

quadeg1.m

%微积分例1:一元函数求导(diff,gradient) clear;close; x=-2*pi:0.1:2*pi; y=sin(x); dy=diff(y)./diff(x); plot(x,y,x(1:length(x)-1),dy); hold on; yx =gradient(y,x); plot(x,yx,'ro');

ex0429.f90

program ex0429 implicit none real pi parameter(pi=3.14159) write(*,"(F4.2)") sin(pi/6) end

flipdtft.m

function [G, Wflipped] = flipDTFT(H, W) %FLIPDTFT flip the DTFT: G(w) = H(-w) %-------- % Usage: [G, Wflipped] = flipDTFT(H, W) % % . H : DTFT values (complex) % W : frequency s

gdel.m

function [gd, w] = gdel(x, n, Lfft) %GDEL compute the group delay of x[n] %---- % Usage: [gd, w] = gdel( x, n, Lfft ) % % x : Signal x[n] at the times (n) % n : Vector of time i

box542.m

function box542 X=0:0.1*pi:2*pi; Y=sin(X); plot(X,Y); grid on box off

text541.m

function text541 x=1:0.1*pi:2*pi; y=sin(x); plot(x,y) xlabel('x(0-2\pi)','fontweight','bold'); ylabel('y=sin(x)','fontweight','bold'); title('正弦函数','fontsize',12,'fontweight','bold','fontname'