代码搜索结果
找到约 36,166 项符合
Raspberry Pi 的代码
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.
p3_3.m
% Program P3_3
% Frequency-Shifting Properties of DTFT
clf;
w = -pi:2*pi/255:pi; wo = 0.4*pi;
num1 = [1 3 5 7 9 11 13 15 17];
L = length(num1);
h1 = freqz(num1, 1, w);
n = 0:L-1;
num2 = exp(wo
p3_6.m
% Program P3_6
% Time Reversal Property of DTFT
clf;
w = -pi:2*pi/255:pi;
num = [1 2 3 4];
L = length(num)-1;
h1 = freqz(num, 1, w);
h2 = freqz(fliplr(num), 1, w);
h3 = exp(w*L*i).*h2;
subplo
p3_1.m
% Program P3_1
% Evaluation of the DTFT
clf;
% Compute the frequency samples of the DTFT
w = -4*pi:8*pi/511:4*pi;
num = [2 1];den = [1 -0.6];
h = freqz(num, den, w);
% Plot the DTFT
subplot(2
radiasi.m
kh=(2*pi);
theta(1)=0;
for i=1:1000
r(i)=sin(theta(i))*2*cos(kh*cos(theta(i)));
if(i
radiasi.m
kh=(2*pi);
theta(1)=0;
for i=1:1000
r(i)=sin(theta(i))*2*cos(kh*cos(theta(i)));
if(i
radiasi.m
kh=(2*pi);
theta(1)=0;
for i=1:1000
r(i)=sin(theta(i))*2*cos(kh*cos(theta(i)));
if(i
c3-12.cpp
#include
#include
#include
using namespace std;
int main()
{int s=1;
double n=1,t=1,pi=0;
while((fabs(t)) > 1e-7)
{pi=pi+t;
n=n+2;
s=-s;
t=s/n;
pi4qpsk.m
function y=pi4QPSK(N)
%pi/4QPSK调制
%参数说明:
% y 生成Pi/4QPSK行向量
% N 码元个数
M=4;
x=randint(N,1,M)';%生成N*1列生成码元矩阵
x=rectpulse(x,4);%矩形滤波
theta=pi/4;
y=zeros(1,4*N);
y(1)=exp(j*(theta+x(1)
pi4qpsk.m
function y=pi4QPSK(N)
%pi/4QPSK调制
%参数说明:
% y 生成Pi/4QPSK行向量
% N 码元个数
M=4;
x=randint(N,1,M)';%生成N*1列生成码元矩阵
x=rectpulse(x,4);%矩形滤波
theta=pi/4;
y=zeros(1,4*N);
y(1)=exp(j*(theta+x(1)