-
BerndHafner
C-mex files for MATLAB encounter the following problem when compiling
them with WATCOM 11.0: All access-functions to files (fprintf, fscanf)
cannot handle double variables, only integer and strings are read or
written correctly. The file convert.c contains two functions: You may
read a double-variable as a string from the file and convert it to a
double (function string2double) and you may convert a double to a string
(function double2string) and write it to a file (see main() in
convert.c).
The file conditio.dat is an example of numbers read by convert.c. The
conv.exe was compiled on a Windows95-system.
The files were tested for MATLAB 5.2 and WATCOM 11.0a
result of "ver" is: MATLAB Version 5.2.1.1420 on PCWIN
(C-mex files for MATLAB encounter the following problem when compiling them with WATCOM 11.0: All access-functions to files (fprintf, fscanf) cannot handle double variables, only integer and strings are read or written correctly. The file convert.c contains two functions: You may read a double-variable as a string from the file and convert it to a double (function string2double) and you may convert a double to a string (function double2string) and write it to a file (see main () in convert.c). The file conditio.dat is an example of numbers read by convert.c. The conv.exe was compiled on a Windows95-system. The files were tested for MATLAB 5.2 and WATCOM 11.0a result of " ver" is : MATLAB Version 5.2.1.1420 on PCWIN)
- 2009-12-23 14:44:06下载
- 积分:1
-
mini2
clear all
clc
t=0:1/1000:10-1/1000
s=sin(2*pi*t)
snr=20
s_power=var(s) varience of s
linear_snr=10^(snr/10)
factor=sqrt(s_power/linear_snr)
noise=randn(1,length(s))*factor
x=s+noise Ó É SNR¼ Æ Ë ã Ë æ » úÔ ë É ù
x1=noise Ô ë É ùÔ ´ Ê ä È ë
x2=noise
w1=0 È ¨Ï µ Ê ý ³ õ Ö µ
w2=0
e=zeros(1,length(x))
y=0
u=0.05
for i=1:10000 LMSË ã ·¨
y(i)=w1*x1(i)+w2*x2(i)
e(i)=x(i)-y(i)
w1=w1+u*e(i)*x1(i)
w2=w2+u*e(i)*x2(i)
end
figure(1)
subplot(4,1,1)
- 2010-10-26 16:41:03下载
- 积分:1
-
signal
用Fourier变换求信号的功率谱(分段周期图法)(Calculate the power spectrum of signal using Fourier transform method)
- 2014-09-22 16:11:45下载
- 积分:1
-
zero_tap_detection_adaptiveequalizer
具有检测FIR滤波器单位脉冲响应h[n]中零系数(zero tap detection)功能的LMS算法自适应均衡器,可处理相关输入(colored inputs)和独立输入(white inputs). 检测出零系数的个数和位置,减少后续计算次数,提高算法效率。(Zero Tap Detection LMS adaptive Equalizer with Tap Decoupling techniques and Colored Inputs and white inputs.)
- 2009-04-23 11:14:38下载
- 积分:1
-
GeneticAlgorithm
using genetic algorithm to find the peak point of the given function
- 2010-11-15 16:53:17下载
- 积分:1
-
EnMn
EnMn 求一帧语音信号的短时能量和短时幅度函数(Seeking a short-time speech signal power and short range function)
- 2010-11-26 12:14:46下载
- 积分:1
-
walvetnosiedepression
语音增强中的小波去噪,主要是抑制细节信号中,进行清音浊音判别,进行阈值选取(wavlet)
- 2010-11-30 12:57:58下载
- 积分:1
-
findFFT
Fin the FFT, this program find the fast fourier transform, this is of many applications for the processing signal
- 2010-05-21 02:54:42下载
- 积分:1
-
Matlab_FPGA
在Matlab中实现数字通信FPGA硬件设计(In Matlab in digital communications hardware design FPGA)
- 2009-06-22 11:37:12下载
- 积分:1
-
range_zoudong
关于距离走动和距离走动校正的仿真程序,思路清晰,很有条理,赶紧下载吧。(About distance walking distance around and calibration of the simulation program ideas clearly, very organized, hurriedly download it
)
- 2021-04-27 09:38:44下载
- 积分:1