代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
ex039900.m
w = [-100:100]*pi/100; % frequency between -pi and +pi
N = 5;
X1 = sin((w+eps)*N/2)./sin((w+eps)/2);
N = 15;
X2 = sin((w+eps)*N/2)./sin((w+eps)/2);
N = 25;
X3 = sin((w+eps)*N/2)./sin((w+eps)/2);
ex030300.m
w = [0:1:500]*pi/500; % [0, pi] axis divided into 501 points.
X = exp(j*w) ./ (exp(j*w) - 0.5*ones(1,501));
magX = abs(X); angX = angle(X);
realX = real(X); imagX = imag(X);
subplot(2,2,1); plot(
ex030400.m
% Chapter 3: Example 3.4:
% DTFT of finite duration seq using mat-vec operation
%
n = -1:3; x = 1:5; % sequence x(n)
k = 0:500; w = (pi/500)*k; % [0, pi] axis divided in
ex030600.m
subplot(1,1,1)
n = -5:5; x = (-0.9).^n;
k = -200:200; w = (pi/100)*k;
X = x * (exp(-j*pi/100)) .^ (n'*k);
magX = abs(X); angX =angle(X);
subplot(2,1,1); plot(w/pi,magX);grid
axis([-2,2,0,15])
x
ex031000.m
n = -5:10; x = rand(1,length(n)) + j*rand(1,length(n));
k = -100:100; w = (pi/100)*k; % frequency between -pi and +pi
X = x * (exp(-j*pi/100)).^(n'*k); % DTFT of x
% conjugation property
ex082900.m
% Chapter 8: Example 8.29
% Elliptic Bandpass Filter Design:
% Use of the ELLIP function
%
% Digital Filter Specifications: % Type: Elliptic Bandpass
ws = [0.3*pi
ex081100.m
% Chapter 8: Example 8.11
% Impulse Invariance Transformation
% Butterworth Lowpass Filter Design
%
% Digital Filter Specifications:
wp = 0.2*pi;
ex081400.m
% Chapter 8: Example 8.14
% Impulse Invariance Transformation
% Elliptic Lowpass Filter Design
%
% Digital Filter Specifications:
wp = 0.2*pi;
ex082800.m
% Chapter 8: Example 8.28
% Chebyshev-1 Highpass Filter Design:
% Use of the CHEBY1 function
%
% Digital Filter Specifications: % Type: Chebyshev-I highpass
ws =
ex081300.m
% Chapter 8: Example 8.13
% Impulse Invariance Transformation
% Chebyshev-2 Lowpass Filter Design
%
% Digital Filter Specifications:
wp = 0.2*pi;