代码搜索:Sign
找到约 10,000 项符合「Sign」的源代码
代码结果 10,000
www.eeworm.com/read/190158/8446830
txt ulaw.txt
Path: super!cfreese
From: cfreese@super.ORG (Craig F. Reese)
Newsgroups: comp.dsp
Subject: SPARCStation audio conversion (ulaw linear)
Message-ID:
Date: 29 Sep 89 23:23:49 GMT
Se
www.eeworm.com/read/390194/8478159
txt 10-04.txt
%例10-4 判断某一年是否为闰年。。
%该函数用于判断某一年是否为闰年
%使用格式为isleapea(y),其中y是用户所要计算的年份
function isleapyear(year)
sign=0;
if rem(year,4)==0
sign=sign+1;
end
if rem(year,100)==0
sign=sign-1;
end
i
www.eeworm.com/read/290246/8492953
m chap8_1eq.m
function dx=PlantModel(t,x,flag,para)
dx=zeros(2,1);
at=3*sin(t);
z0=1.0;
L=10;
dx(1)=z0+at;
dx(2)=z0+L*sign(x(1)-x(2));
www.eeworm.com/read/389451/8519386
m p_y.m
function pc3inte=P_y(interval,len);
% 该函数对区间进行裁减即Py投影,返回裁剪后的区间信号
if sign(interval(1))==sign(interval(len))
interval=interval.*(sign(interval)==sign(interval(1)));
inte=interp1([1,len],[i
www.eeworm.com/read/289579/8541848
c 递归车厢.c
/**********递归题改为非递归题实例 车厢********/
#include
#define MAX 4
int stack[MAX],p=-1;
struct
{
int num;
int sign;
}train[MAX];
void sub()
{
int inc;
if(p==MAX-
www.eeworm.com/read/433114/8545613
m ibm2single.m
function x=ibm2single(b)
% ibm2num : convert IBM 32 bit floating point format to single-precision
% floating-point numbers
% x=ibm2single(b)
% b is a matrix of uint32
% x is a corresponding matrix
www.eeworm.com/read/433114/8545736
m ibm2double.m
function x=ibm2double(b)
% ibm2num : convert IBM 32 bit floating point format to doubles
% x=ibm2double(b)
% b is a matrix of uint32
% x is a corresponding matrix of doubles
%
% See also num2ibm
%
www.eeworm.com/read/289444/8550693
c coder_frac.c
#define FIX_ERRORS
#define DO_LOG
#define MAX_SCALE_0
//#define MAX_SCALE_1
/** allowing scales hurts about 0.1 bpp,
* fixes and escapes are both reduce by about 200 (1400 -> 1200)
* b
www.eeworm.com/read/289444/8550893
c coder_vq.c
#define QUANTIZER 0
/*****
on checa 256 @ 0.50 bpp
z = 2 : psnr 36.89
z = 0 : psnr 37.16
so fixing is slightly better, but not much
on checa 256 @ 0.25 bpp
z = 10 : psnr 31.78
z
www.eeworm.com/read/432495/8601553
m chap5_6f.m
function [kx,BsJ]=pid_fm_gaf(kx,BsJ)
global rin yout timef F
a=50;b=400;
ts=0.001;
sys=tf(b,[1,a,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
u_1=0;u_2=0;
y_1=0;y_2=0;
e_1=0;