代码搜索结果

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

p1-100.cpp

#include #define PI 3.1416 main() { int i=100; #if 1 cout

hsi2rgb.m

function rgb = hsi2rgb(hsi) %HSI2RGB Converts an HSI image to RGB. % RGB = HSI2RGB(HSI) converts an HSI image to RGB, where HSI is % assumed to be of class double with: % hsi(:, :, 1) =

fm_clock.m

function fm_clock(varargin) % FM_CLOCK create a clock % %Author: Federico Milano %Date: 11-Nov-2002 %Update: 10-Feb-2003 %Version: 1.0.2 % %E-mail: fmilano@thunderbox.uwaterloo.ca %Web

dbtcsc.m

function DB = dbtcsc(p) global DAE DB = zeros(p.n,1); if p.ty1 y = p.y(p.ty1); x = DAE.x(p.x1(p.ty1)); DB(p.ty1) = -(y./(1-y.*x)).^2; end if p.ty2 xC = p.con(p.ty2,15); xL = p.con(p.ty2,

balpha.m

function out = balpha(p,af,idx,type) xC = p.con(p.ty2(idx),15); xL = p.con(p.ty2(idx),14); switch type case 1 kx1 = sqrt(xC./xL); kx2 = kx1.*kx1; kx3 = kx2.*kx1; kx4 = kx3.*kx1; ckf = cos

ww.m

%program4_2 N=8; %计算n=-N到-1的Fourier系数 n1=-N:-1; c1=-4*j*sin(n1*pi/2)/pi^2./n1.^2; %计算n=0时的Fourier系数 c0=0; %计算n=1到N的Fourier系数 n2=1:N; c2=-4*j*sin(n2*pi/2)/pi^2./n2.^2; cn=[c1 c0 c2]; n=-N:N;

fplotjb.m

clear clc subplot(2,2,1), fplot('humps',[0 1]) subplot(2,2,2), fplot('abs(exp(-j*x*(0:9))*ones(10,1))',[0 2*pi]) subplot(2,2,3), fplot('[tan(x),sin(x),cos(x)]',2*pi*[-1 1 -1 1]) subplot(2,2,4), f

zfft.m

fs=1000; N=4096; D=50; M=200; t=(0:N*D+2*M)/fs; x=4*sin(2*pi*166.35*t+0.8*sin(2*pi*0.65*t)+pi/6)+0.6*randn(1,N*D+2*M+1); xf=fft(x,N); xf=abs(xf(1:N/2))/N*2; subplot(121); plot((0:N/2-1)*fs/N,xf); a

例7-2.m

>> t=(-5*pi:pi/40:5*pi)+eps; >> y=sin(t)./t; >> hline=plot(t,y); %绘制Sa曲线 >> cm=uicontextmenu; %创建现场菜单 >> %制作具体菜单项,定义相应的回调 >> uimenu(cm,'label','

例9-24 .m

t=0:-001:1 %产生原始信号 x=t+sin(10*2*pi*t).*cos(2*pi*t) %对原始信号进行DCT变换 y=dct(x) %取数据长度的1/10进行重建实验 n=fix(length(y)/10) %其余数据全部填充为0 y(n+1:length(y))=0 %使用剩下的1/10数据进行反DCT变换,重建原始信号 z=idct(y)