代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
13kfft0.c
#include "stdio.h"
#include "13kfft.c"
#include "math.h"
main()
{ int i,j;
double pr[64],pi[64],fr[64],fi[64];
for (i=0; i
wt2.m
function wr = wt2(dat,c,pmn,pmx,m)
% The function WT2 generates a 2-D Morlet Wavelet Transform
% of data dat(n,1), where n specifies the length of time series
% and it must be even.
%
% The out
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)
test.m
clear all
factor = 4. * pi *5.;
theta = 0:.1:90;;
theta = theta .* (pi/180);
f = sqrt((1. + 1 + 2.0 .* cos(pi+factor .* sin(theta))));
polar(theta,f,'k');
xlabel ('Normalized range R/Ro')
fig10_5.m
clear all
eps = 0.0000001;
beta = -pi : pi / 10791 : pi;
var = sin(beta);
%var = -1.:0.00101:1.;
num = sin((8. * 2. * pi * 0.5) .* var);
if(abs(num)
fig1_31.m
a=-2*pi:0.01:2*pi;
%angle=sin(a);
y=sinc(a).^2;
ymod=10.*log10(y);
plot(a,ymod,'k');
grid
xlabel('Aangle - radians');
ylabel('Normalized antenna pattern -dB');
atuocorrlation.m
u=sqrt(1/exp(1.0));
v=u*randn(1,1000);
n=1:1000;w=1.4*pi;
xn=exp(j*pi*n-j*pi)+exp(j*w*n-j*0.7*pi)+v;
plot(n,xn);
m=-500:500;
[r,lag]=xcorr(xn,500,'biased');
hndl=stem(lag,r);
set(hndl,'mark
cp0702_analytical_waveforms.m
%
% FUNCTION 7.3 : "cp0702_analytical_waveforms"
%
% Definition of the analytical expression for the first 15
% derivatives of the Gaussian pulse
%
% The function receives as input:
% 1) the ti