代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
ex030500.m
subplot(1,1,1)
n = 0:10; x = (0.9*exp(j*pi/3)).^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,
ex031300.m
w = [0:1:500]*pi/500; % [0, pi] axis divided into 501 points.
X = exp(j*w) ./ (exp(j*w) - 0.9*ones(1,501));
magX = abs(X); angX = angle(X);
subplot(2,1,1); plot(w/pi,magX); grid; axis([0,1,0,10])
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
ex081300.m
% Chapter 8: Example 8.13
% Impulse Invariance Transformation
% Chebyshev-2 Lowpass Filter Design
%
% Digital Filter Specifications:
wp = 0.2*pi;
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;
ex081200.m
% Chapter 8: Example 8.12
% Impulse Invariance Transformation
% Chebyshev-1 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 =
freqz_m.m
function [db,mag,pha,grd,w] = freqz_m(b,a);
% Modified version of freqz subroutine
% ------------------------------------
% [db,mag,pha,grd,w] = freqz_m(b,a);
% db = Relative magnitude in dB comp