代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
gamicheval.m
function [sol,val] = gaMichEval(sol,options)
val = 21.5 + sol(1) * sin(4*pi*sol(1)) + sol(2)*sin(20*pi*sol(2));
%G=zeros(0);
%val = sqrt(sol(1)) * sin(2*sol(1)) + sqrt(sol(1))*cos(5*sol(1))+5;
gamicheval.m
function [sol,val] = gaMichEval(sol,options)
val = 21.5 + sol(1) * sin(4*pi*sol(1)) + sol(2)*sin(20*pi*sol(2));
%G=zeros(0);
%val = sqrt(sol(1)) * sin(2*sol(1)) + sqrt(sol(1))*cos(5*sol(1))+5;
10-1.m
clear all; % 清所有的变量
clf; % 清屏
N=1224; % 设置数据点数
f1=200; % 设置信号1频率
f2=700; % 设置信号2频率
f3=1100; % 设置信号3频率
dt=1/1024; % 设置采样时间
sample=
firrcos.m
function [h,a] = firrcos(N,f0,df,Fs)
%FIRRCOS Raised Cosine FIR Filter design.
% FIRRCOS(N,F0,DF,Fs) returns an order N low pass linear phase FIR filter
% with a raised cosine transition ban
firls.m
function [h,a]=firls(N,F,M,W,ftype);
% FIRLS Linear-phase FIR filter design using least-squares error minimization.
% B=FIRLS(N,F,A) returns a length N+1 linear phase (real, symmetric
% coeffic
equation.m
function yp=equation(x,y);
%
%BBI 99
global K fi fo
RC=25/(2*pi*fo); %滤波器的时间常数
yp(1)=y(2);
yp(2)=K/RC*sin(2*pi*fi*x).*cos(2*pi*po*x+y(1))-y(2)/RC;
v=version;v=v(1);
if strcmp(v,'5');yp=yp';e
equation.m
function yp=equation(x,y);
%
%BBI 99
global K fi fo
RC=25/(2*pi*fo); %滤波器的时间常数
yp(1)=y(2);
yp(2)=K/RC*sin(2*pi*fi*x).*cos(2*pi*po*x+y(1))-y(2)/RC;
v=version;v=v(1);
if strcmp(v,'5');yp=yp';e
frand.c
/* +++Date last modified: 05-Jul-1997 */
/*
** FRAND.C - Public domain by Larry Hudson
*/
#include
#include
#include "snipmath.h"
#define TEN_PI 31.41592653589793
#def
gamicheval.m
function [sol,val] = gaMichEval(sol,options)
val = 21.5 + sol(1) * sin(4*pi*sol(1)) + sol(2)*sin(20*pi*sol(2));
%G=zeros(0);
%val = sqrt(sol(1)) * sin(2*sol(1)) + sqrt(sol(1))*cos(5*sol(1))+5;
qamdemodule.m
%The received signal
clear
%Duration
t = 0 : 1/1e3 : 0.999;
%Source
a = randint(1, 20, 2);
a=[1,1,1,0,0,0,0,1,1,0,0,1,1,1,0,1,0,1,1,1];
%Serial to Parallel
Ai = 2*a(1:2:20) - 1;
Aq