資源簡介
光譜數據預處理,對光譜數據的噪聲進行平滑操作。去除其中的噪聲等,消除干擾因素。得到可以利用的數據
代碼片段和文件信息
clf;clear;
Ts=0.005;?
fs=1/Ts;?
NLen=1024;?
n=0:NLen-1;
s=sin(2*pi*4.3*n*Ts)
x=sin(2*pi*4.3*n*Ts)+0.5*randn(11024)%sin(2*pi*42.5*n*Ts)+sin(2*pi*85*n*Ts)+sin(2*pi*20*n*Ts)+
subplot(311);
plot(s);
subplot(312);
plot(x);
s1=sgolayfilt(x341)
subplot(313);
plot(s1);
xfft=fft(xNLen);??
%mag=abs(xfft)
xfft=xfft.*conj(xfft)/NLen;?%求幅值
y1=ff
- 上一篇:svm一對一分類
- 下一篇:基于模擬退火算法的TSP問題matlab實現
評論
共有 條評論