代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
feedb.m
% feedbl.m
% 反馈线性化
% 初始化
clear
X1 = [rand(1,300)*pi, rand(1,100)*pi];
X2 = [rands(1,300)*pi, zeros(1,100) ];
P = [X1; X2];
dt = 0.05;
T= X2 + dt*(10*sin(X1)-2*(X2));
[R,Q] = size(P);
S1
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;
bpck6.c
/*
backpack.c (c) 2001 Micro Solutions Inc.
Released under the terms of the GNU General Public license
backpack.c is a low-level protocol driver for the Micro Solutions
"BACKPACK" parallel port
3-8.c
#include
#include
#include
void main (void) {
double pi,t;
long int n,s;
t=1.0;
n=1;
s=1;
pi=0.0;
SCON = 0x50;
TMOD |=
7-3.c
#include
#include
const double PI=3.14159;
double area(double);
void main( )
{
double r,s;
SCON = 0x50;
TMOD |= 0x20;
TH
gaussian.c
#include
#define pi 3.1415
double
gaussian(double x)
{
double resu;
resu=-0.5*x*x;
resu=exp(resu);
resu=resu/sq
ex050800.m
% 第五章: 例5.8: 高分辨率频谱
%
% 基于信号x(n)的100个样本的高分辨率频谱
subplot(1,1,1)
n=[0:1:99];
x=cos(0.48*pi*n)+cos(0.52*pi*n);
subplot(2,1,1);stem(n,x);title('信号x(n), 0
ex050600.m
% 第五章: 例 5.6: 简单DFT的实例
%
x = [1,1,1,1];
subplot(1,1,1);
%
% a) DTFT
w = [0:1:500]*2*pi/500;
[H] = freqz(x,1,w);
magH = abs(H); phaH = angle(H); phaH(126)=-47.5841*pi/180;
subplot(2,1,1); plot
ex050700.m
% 第五章: 例 5.7:填补零点的实例
%
subplot(1,1,1);
x = [1,1,1,1];
%
% a) DTFT
w = [0:1:500]*2*pi/500;
[H] = freqz(x,1,w);
magH = abs(H); phaH = angle(H); phaH(126)=-47.5841*pi/180;
%
% b) 8-point DFT
N
ex072200.m
% 第七章: 例 7.22
% 误差函数图和极值的数目
figure(1);subplot(1,1,1)
h = [1,2,3,4,3,2,1]/15;
M = length(h); n = 0:M-1;
[Hr,w,a,L] = Hr_Type1(h);
subplot(1,2,1);plot(w/pi,Hr);axis([0,1,-0.05,1.1])
xlabel('频率(单位