代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
plot_iterfilt.m
function plot_iterfilt(h0,h1,h2,titlestring)
[H2,w] = freqz(h2);
[H1,w] = freqz(h1);
clf
plot(w/pi, abs(H1).^2 , 'r', w/pi, abs(H2).^2 , 'b')
set(gca,'fontsize',8)
hold on
f{1}{1} = h0;
f{2}{1} = h
例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
4.txt
//源程序如下
#include
#include
#include
#include
#define PI 3.1415926
int nNum=0,nMaxNum=20;
LRESULT CALLBACK WindowProc(
HWND hwnd, // handle t
cfft_32.asm
;***********************************************************
; Version 2.20.01
;***********************************************************
;=============
cifft_32.asm
;***********************************************************
; Version 2.20.01
;***********************************************************
;=============