代码搜索结果
找到约 36,166 项符合
Raspberry Pi 的代码
classical.m
function classical=u(h,r)
k=r*(h^2);
x=0:h:1;
t=0:k:0.005;
m=size(x');
n=size(t');
u=1:1:m;
for i=1:m
u(i)=sin(pi*(i-1)*h);
end
for i=1:n-1
for j=2:m-1
u(1)=0;
u(m
lxcaiyang.m
%连续信号的采样
f=10;
t=0:0.001:0.2;
x=cos(2*pi*f*t);
plot(t,x);
%%%%%%%%%%采样%%%%%%%%%%%%
Fs=50;
Ts=1/Fs;
n=0:20;
xn=cos(2*pi*f*n*Ts);
figure,stem(n,xn);
% W=(hanning(length(n)))';xn=xn.*W
somax.m
function somax
close all; load sdata;
hc = 20.* log10(abs(hc)) - 20*log10(noisefloor);
xxx=linspace(-pi/dkx,pi/dkx,size(hc,2));
yyy=linspace(-pi/dky,pi/dky,size(hc,2));
zzzc1=max(maz(hc)); zzzc2=min(
tohrev.m
function angle = tohrev(angle)
% This will take in an angle in radians between
% -2*pi and 2*pi and modulate it so that the output
% is from -pi to pi
%
% angle = tohrev(angle)
if(angle > pi & angle
tohrev.m
function angle = tohrev(angle)
% This will take in an angle in radians between
% -2*pi and 2*pi and modulate it so that the output
% is from -pi to pi
%
% angle = tohrev(angle)
if(angle > pi & angle
firwin.m
clc
clear
close all
choosetype=1;
% 1 BOXCAR;2 BARTLETT; 3 HANN;4 HAMMING; 5 BLACKMAN;
choose=4;
%1 lp;2 hp;3bp;4bs
switch choose
case 1
wp=2*pi;
ws=4*pi;
s=20;
width=(ws-wp)/pi/s;
projection_parameter.m
function [alpha K Ps] = projection_parameter(phi_S,phi_N,phi_0,A,E);%%投影参数计算
phi_1 = phi_S + ((phi_N - phi_S)/4.0);
phi_2 = phi_N - ((phi_N - phi_S)/4.0);
rad_0 = phi_0 * pi/180;
rad_1 = phi_1
pi.c
#include
#include
#include
#include
#include "global.h"
#include "mbuf.h"
#include "iface.h"
#include "pktdrvr.h"
#include "netuser.h"
#include "pi.h"
#
注意.txt
1. 注意舍入方式(0.5的舍入方向);防止输出-0.
2. 几何题注意多测试不对称数据.
3. 整数几何注意xmult和dmult是否会出界;
符点几何注意eps的使用.
4. 避免使用斜率;注意除数是否会为0.
5. 公式一定要化简后再代入.
6. 判断同一个2*PI域内两角度差应该是
abs(a1-a2)pi+
球面.txt
#include
const double pi=acos(-1);
//计算圆心角lat表示纬度,-90