代码搜索结果

找到约 10,000 项符合 Raspberry Pi 的代码

code192a.txt

Public Sub Main() Const Pi = 3.14159265 Debug.Print "Tangent of pi is ", Tan(pi) Debug.Print "Tangent of pi/4 is ", Tan(pi / 4.0) End Sub

exp2_3_.m

%plot绘图命令的使用 close all %关闭打开了的所有图形窗口 clc %清屏命令 clear %清除工作空间中所有变量 %定义时间范围 t=[0:pi/20:8*pi]; y=sin(t); plot(t,y,'b:square') % r表示线的颜色为红色,此外 y(黄色)g(绿色)b(蓝色) %

exp2_5_.m

%图形文字标示命令的使用 clear close all clc t=[0:pi/20:5*pi]; plot(t,sin(t),'r:*') axis([0 5*pi -1.5 1.5 ]) %给x轴和y轴命名 xlabel('t(deg)') ylabel('magnitude') %给图形加标题 title('sine wave from zero to 5\pi')

exp2_3.m

%plot绘图命令的使用 clc %清屏命令 clear %清除工作空间中所有变量 %定义时间范围 t=[0:pi/20:9*pi]; y1=sin(t); y2=cos(t); plot(t,y1,t,y2)

stem301.m

theta = -pi:0.05:pi; x = cos(theta); y = sin(theta); z = abs(cos(3*theta)).*exp(-abs(theta/3)); stem3(x, y, z);

plotxy16.m

x = 0:0.1:2*pi; plot(x, sin(x), x, cos(x)); text(pi/4, sin(pi/4),'\leftarrow sin(\pi/4) = 0.707'); text(5*pi/4, cos(5*pi/4),'cos(5\pi/4) = -0.707\rightarrow', 'HorizontalAlignment', 'right')

p10_8.m

% Program P10_8 % Design of Uniform DFT Filter Banks clf; % Design the prototype FIR lowpass filter b = remez(20, [0 0.2 0.25 1], [1 1 0 0], [10 1]); w = 0:2*pi/255:2*pi; n = 0:20; for k = 1:4; c =

p3_5.m

% Program P3_5 % Modulation Property of DTFT clf; w = -pi:2*pi/255:pi; x1 = [1 3 5 7 9 11 13 15 17]; x2 = [1 -1 1 -1 1 -1 1 -1 1]; y = x1.*x2; h1 = freqz(x1, 1, w); h2 = freqz(x2, 1, w); h3 = freqz(y,

p3_4.m

% Program P3_4 % Convolution Property of DTFT clf; w = -pi:2*pi/255:pi; x1 = [1 3 5 7 9 11 13 15 17]; x2 = [1 -2 3 -2 1]; y = conv(x1,x2); h1 = freqz(x1, 1, w); h2 = freqz(x2, 1, w); hp = h1.*h2; h3 =

p5_4.m

% Program P5_4 % Design of Analog Lowpass Filter clf; Fp = 3500;Fs = 4500; Wp = 2*pi*Fp; Ws = 2*pi*Fs; [N, Wn] = buttord(Wp, Ws, 0.5, 30,'s'); [b,a] = butter(N, Wn, 's'); wa = 0:(3*Ws)/511:3*Ws; h =