• PUDN用户
    了解作者
  • matlab
    开发工具
  • 1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 7
    下载次数
  • 2015-05-31 12:21
    上传日期
自相关仿真,波形采用仿真的超声流量计波形,用去噪声的去相关
matlab-test.zip
  • runawgn.m
    670B
  • run.m
    754B
内容介绍
clc clear all close all d = 50*10^-6; % f = 200000; init = 0; dt = 1e-7; total = 5e-4; N0 = init/dt; N1 = d/dt; t1 = init:dt:total; p = (t1-d)/(0.2*10^-4); m = p.^2; n = exp(-p); A = cos(2*pi*f*(t1-d)); B = 1.5*m.*n; S = B.*A; for n = 1:1:N1-N0; S(n) = 0; end y1 = S; %plot(t1,y1); d = 250*10^-6; f = 200000; init = 0; dt = 1e-7; total = 5e-4; N0 = init/dt; N1 = d/dt; t2 = init:dt:total; p = (t2-d)/(0.2*10^-4); m = p.^2; n = exp(-p); A = cos(2*pi*f*(t2-d)); B = 1.5*m.*n; S = B.*A; for n = 1:1:N1-N0; S(n) = 0; end y2 = S; %plot(t2,y2); [m,n] = xcorr(y1,y2); subplot(3,1,1); plot(t1,y1); subplot(3,1,2); plot(t2,y2); subplot(3,1,3); plot(n*dt,m);
评论
    相关推荐