代码搜索:Raspberry Pi
找到约 10,000 项符合「Raspberry Pi」的源代码
代码结果 10,000
www.eeworm.com/read/165898/10047261
m text541.m
function text541
x=1:0.1*pi:2*pi;
y=sin(x);
plot(x,y)
xlabel('x(0-2\pi)','fontweight','bold');
ylabel('y=sin(x)','fontweight','bold');
title('正弦函数','fontsize',12,'fontweight','bold','fontname'
www.eeworm.com/read/165898/10047263
m gtext541.m
function gtext541
X=1:0.1*pi:2*pi;
Y=sin(X);
plot(X,Y)
gtext('y=sin(x) ', 'fontsize',12)
www.eeworm.com/read/165898/10047267
m legend541.m
function legend541
x = -pi:pi/20:pi;
plot(x,cos(x),'-ro',x,sin(x),'-.b')
h = legend('cos','sin',2);
www.eeworm.com/read/165898/10047679
m eg10_4.m
N=12;%序列长度
n=0:N-1;%时域取样
xn=cos(pi*n/6);%产生序列
k=0:N-1;%频域取样
wn=exp(-j*2*pi/N);
nk=n'*k;
wnnk=wn.^nk;
xk=xn*wnnk %计算DFT
figure(1)%画图
stem(n,xn)
figure(2)
stem(k,abs(xk))
www.eeworm.com/read/165898/10047687
m eg10_12.m
wp=0.2*pi;
ws=0.3*pi;
rp=0.5;
rs=20;
[n,wn]=ellipord(wp,ws,rp,rs,'s')
[z,p,k] = ellipap(n,rp,rs);
w = logspace(-1,1,1000);
h = freqs(k*poly(z),poly(p),w);
semilogx(w,abs(h));
grid
www.eeworm.com/read/165851/10048989
m program_11_5.m
% Program 11_5
% Development of an AR model of an FIR filter
%
colordef black
b = remez(20, [0 0.5 0.6 1], [1 1 0 0]);
[h,w] = freqz(b,1,512);
[d,p0] = lpc(b,30);
[h1,w] = freqz(p0,d,512);
p
www.eeworm.com/read/165851/10049008
m program_03_01.m
% Program 3_1
% Discrete-Time Fourier Transform Computation
%
% Read in the desired length of DFT
colordef black;
k = input('Number of frequency points = ');
% Read in the numerator and denomi
www.eeworm.com/read/361299/10058835
m ex050800.m
% Chapter 05: Example 05.08: HiRes Spectrum
%
% High resolution spectrum based on 100 samples of the signal x(n)
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);ti
www.eeworm.com/read/361299/10058837
m ex050600.m
% Chapter 05: Example 05.06: Simple DFT Example
%
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;
subp
www.eeworm.com/read/361299/10058840
m ex050700.m
% Chapter 05: Example 05.07: Zero-padding Example
%
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;
%