Self-adaptive Filter and Continuous Subdivision Fourier - matlab其它源码 - 谷速源码
下载频道> 资源分类> matlab源码> 其它源码> Self-adaptive Filter and Continuous Subdivision Fourier

标题:Self-adaptive Filter and Continuous Subdivision Fourier
分享到:

所属分类: 其它源码 资源类型:程序源码 文件大小: 6.91 MB 上传时间: 2019-06-17 22:38:38 下载次数: 79 资源积分:1分 提 供 者: zhangsan456 code
内容:
Self-adaptive Filter and Continuous Subdivision Fourier
%Self-adaptive Filter and Continuous Subdivision Fourier
%Transform are Listed as the Following
 
clear
clc
%第一种情况
load bar_1_normal_halfload;
data=bar_1_normal_halfload;
slip=0.018;
%第二种情况
%load bar_1_normal_fullload;
%data=bar_1_normal_fullload;
%slip=0.036;
 
fRated=50.0;
 
 
is0=data(1:10:201200,4);
is0=is0*20*sqrt(2)/4.4; 
fs=10060/10;
 
is0=is0-mean(is0);
 
is0=is0';
 
ts=1/fs;
 
wn=[40/(fs/2) 60/(fs/2)];                  
 
[filterb,filtera]=butter(2,wn);
 
is0=filter(filterb,filtera,is0);%Pay attention to adjust fs,simultaneously
is0=filter(filterb,filtera,is0);%Pay attention to adjust fs,simultaneously
 
is=is0(5*fs:1:20*fs-1);
 
isa=is';
 
clear is;
 
n100=length(isa);
 
is=isa(fs:1:(n100-fs-1));
 
 
M=fs;
 
mmm=500;
 
M11=M+mmm;
 
clear is;
 
is=isa;
 
for n=1:M11
    xn(n)=is(n+fs);
end
%% 通过不同的算法,求出xn中含有的频率值。
clear is;
 
is=xn';
 
NNN=round(length(is)*3/4);
XX=corrmtx(is,NNN,'mod');
 
%music算法
[sResult,wResult]=pmusic(XX,50,length(is),fs);
 
stem(wResult,sResult);
 
[vMax,mIndex]=max(sResult)
 
 
%rootmusic算法
[fResult,pResult]=rootmusic(XX,20,fs);%大于20,效果理想。20为经验值,如何确定信号的个数?
 
fResult(1:2:length(fResult));
 
pResult;
 
stem(fResult(1:2:length(fResult)),pResult);
 
fResult0=fResult(1:2:length(fResult));
 
ll=1;
for n=1:length(fResult0)
    if(fResult0(n)>48.0 & fResult0(n)<52.0)
        fReal(ll)=fResult0(n);
        pReal(ll)=pResult(n);
        ll=ll+1;
    end
end
 
stem(fReal,pReal);
axis([45 55 -inf inf]);

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

4QAM Project Instructions-S2013.pdf
Mymusic_rootmusic_Test.m
bar_1_normal_halfload.mat

关键词: Self-adaptive

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved