代码搜索结果
找到约 36,166 项符合
Raspberry Pi 的代码
fig7_11.m
fofr=0.01:0.001:32;
a=63.0/64.0;
term1=(1-2.*cos(a*2*pi*fofr)+cos(4*pi*fofr)).^2;
term2=(-2*sin(a*2*pi*fofr)+sin(4*pi*fofr)).^2;
resp=.25.*sqrt(term1+term2);
%axis([0 4 -60 0]);
resp=10.*log(res
rcs_cylinder_cmplx.m
clear all
indes = 0;
eps =0.00001;
a1 =.125;
h = 1.;
lambda = 3.0e+8 /9.5e+9;
lambda = 0.00861;
index = 0;
for theta = 0.0:.1:90-.1
index = index +1;
theta = theta * pi /180.;
rcs(
fresnels.m
function cx = fresnels(x)
cx = sin(pi * .5 .* x.^2);
sinc1.m
clear all
xx = -2*pi:.1:2*pi;
[X,Y] = meshgrid(xx);
z = sqrt(X^2+Y^2);
x = sinc(z);
tx_modulate.m
function mod_symbols = tx_modulate(bits_in, modulation)
full_len = length(bits_in);
% BPSK modulation
if ~isempty(findstr(modulation, 'BPSK'))
% Angle [pi/4 -3*pi/4] corresponds to
%
form_ref_matrix.m
function p=form_ref_matrix(P)
if P==1
a=[-1 1];
b=a;
elseif P==2
bits_in=[1 0 1 1 0 1 0 0];
full_len=length(bits_in);
% Angle [pi/4 3*pi/4 -3*pi/4 -pi/4] corresponds to
chap3_11f.m
function [y]=func(x1,x2,x3)
for l1=1:1:3
gs1=-[(x1+pi/6-(l1-1)*pi/6)/(pi/12)]^2;
u1(l1)=exp(gs1);
end
for l2=1:1:3
gs2=-[(x2+pi/6-(l2-1)*pi/6)/(pi/12)]^2;
u2(l2)=exp(gs2);
end
chap3_10plot.m
clear all;
close all;
L1=-pi/6;
L2=pi/6;
L=L2-L1;
T=L*1/1000;
x=L1:T:L2;
figure(1);
for i=1:1:3
gs=-[(x+pi/6-(i-1)*pi/6)/(pi/12)].^2;
u=exp(gs);
hold on;
plot(x,u);
end
xlab
9-1.cpp
#include
#define PI 3.1415926
void main()
{float l,s,r,v;
printf("input radius:");
scanf("%f",&r);
l=2.0*PI*r;
s=PI*r*r;
v=4.0/3*PI*r*r*r;
printf
9-2.cpp
#include
#define R 3.0
#define PI 3.1415926
#define L 2*PI*R
#define S PI*R*R
void main()
{
printf("L=%f\nS=%f\n",L,S);
}