代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
ch04.04.c
// #include
// #include
#include
#include
#include
/*****
pi: 4 *pi: 4
st1: 12 st2: 12 ps: 4 *ps: 12
short : 2
short* : 4
例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)
例9-25 .m
t=0:-001:2*pi
x=sin(3*t)
y=hilbert(x)
%同时显示原始数据图像和变换后数据图像
plot(t,real(y),':',t,imag(y))
例5-1.m
>> a1=axes; %创建第一个区域位于窗口上方
>> set(a1,'position',[0.05 0.55 0.9 0.4]); %定位于窗口上方
>> a2=axes; %创建第二个区域
>> set(a2,'position',[0.05 0.
例4-1.m
theta = -pi:0.01:pi; % 计算
rho(1,:) = 2 * sin(5 * theta) .^ 2;
rho(2,:) = cos(10 * theta) .^ 3;
rho(3,:) = sin(theta) .^ 2;
rho(4,:) = 5 * cos(3.5 * theta) .^ 3;
for k = 1:4
po
例2-60.m
>> x=[1 ;3; 5; 7; 9];
>> y=fft(x)
>> t=0:0.02:1; %波形方程
>> x=sin(2*pi*20*t)+sin(2*pi*12*t);
>> y=fft(x); %经过傅立叶变换观察其模数和相位
>> m=abs(y
angletrack.m
clear all;
c=3*10^8;
f=10e9;
v=c/f;
d=v/2;
L=8;
l=0:1:L-1;
angle=-3*pi/5:0.01:3*pi/5;
theta1=-5*pi/180;
a1=exp(-j*2*pi*l*sin(theta1)*d/v);
b1=exp(-j*2*pi*l.'*sin(angle)*d/v);
A1=conj(a1)
algo0802.cpp
WORD_b* AllocBuddy (FreeList &avail, int n) { // 算法8.2
// avail[0..m]为可利用空间表,n为申请分配量,若有不小于n的空闲块,
// 则分配相应的存储块,并返回其首地址;否则返回NULL
WORD_b *pa, *pre, *suc, *pi;
for (int k=0;
k
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