chirp和tone burst信号激励

chirp和tone burst信号激励

%% tone burst信号激励
clear 
f=100e3;%信号频率
fs=5e6;%采样频率
cycle=5;%周期数
t=120e-6;%截取时长

n=fs/f;
subt=1/fs;
nsignal=cycle*n;
ntotal=t/subt;

for i = 1:nsignal
    ex(i) = 0.5*(1-cos(2*pi*i/nsignal))*sin(2*pi*f*i*subt);
    tt(i) = i*subt;
end

for i = nsignal+1:ntotal
    ex(i)=0;
    tt(i) = i*subt;
end

ex=ex';
figure
plot(tt,ex)
% hold on
% plot(tt,abs(intex)/max(abs(intex)))
% ex=ex';
% save seven.txt ex -ASCII -DOUBLE

% Fs=1/t;
% X=fft(ex,cycle*n);
% pf=Fs/2*linspace(0,1,cycle*n/2);
% magX=abs(X);        %信号的幅度 
% plot(pf,2*magX(1:cycle*n/2)/(cycle*n))


%% chirp信号激励
clear all;

t=0:1/1e7:200e-6;%共2000个时刻
x1=chirp(t,50e3,200e-6,200e3);
figure;plot(x1);
x1=x1';
save seven1.txt x1 -ASCII -DOUBLE


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值