代码搜索结果

找到约 36,166 项符合 Raspberry Pi 的代码

sin_wav.m

% sin_wav.m: 子程序,产生正弦波。 % 参数:周期T1,谐波次数Kh,初相位phs,采样点数,N。 function x=sin_wav(T1,Kh,phs,N) pi=3.1415926535897932; T1=1; Kh=1; N=2*10^3; phs=0; h=T1/N; w=Kh*h*2*pi/T1; fai=phs-w; for i=1:N

f.m

function f=f(x) n=size(x); I=ones(n); f=(I+(x./2).^2).^2*pi;

gngauss.m

function grsv=gngauss(m,sgma) if(nargin==0), m=0; sgma=1; elseif nargin==1 sgma=m; m=0; end; u=rand; z=sgma*(sqrt(2*log(1/(1-u)))); u=rand; grsv(1)=m+z*cos(2*pi*u); grsv

4-7.txt

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

rsd_cos.m

% Function to compute raised cosine and derivatives % function [x,x_dot,x_ddot,x_dddot] = rsd_cos(t) x_cos = .5*(1+cos(2*pi*t)); x = x_cos.*pls_fn(t); x_dot = -pi*sin(2*pi*t).*pls_fn(t); x_ddot = -2*

dtransform.m

%dtranform.m 数字滤波器设计,从低通到其他类型滤波器的频率对应关系 %具体的坐标频率转换公式参见《数字信号处理》第二版 丁玉美,高西全, 西安电子科技大学出版社 function [out0,out1]=dtransform(w,string) %下面的参数为设计滤波器时给定的参数 wu=0.7*<mark>pi</mark>; wl=0.5*<mark>pi</mark>; wc=0.4*<mark>pi</mark>; %最终设计的低 ...

fm.m

function y = FM(x,beta) [r, c] = size(x); if r*c == 0 y = []; return; end; if (r == 1) x = x(:); len = c; else len = r; end; Df = 2*pi*beta*100; x = interp(x,20)

music_1.txt

clear; d=1; M=8; N=2; lma=2; sam=200; q=[20,40];%信源方向 A=exp(-2*pi*j*d*[0:M-1]'*sin(q*pi/180)/lma); n=1:sam; v1=1000000000000; v2=3000000000005; SNR=10; Am=10^(SNR/20); signal=Am*[cos(v1*n

music_2.txt

clc clear close signalnum=2; SNR1=10; SNR2=20; theta1=10; theta2=40; SA1=sqrt(2*10^(SNR1/10)); SA2=sqrt(2*10^(SNR2/10)); theta1=theta1*pi/180; theta2=theta2*pi/180; jay=sqrt(-1); c=1500;l

mrpi.c

/* * MIRACL calculate pi - by Gauss-Legendre method * mrpi.c * * Copyright (c) 1988-2001 Shamus Software Ltd. */ #include #include "miracl.h" #ifdef MR_FLASH vo