Problem in Noised chirp signal

1 次查看(过去 30 天)
Emre Can Ertekin
Emre Can Ertekin 2018-6-25
I need to make a noised chirp signal between 1s and 2 second, but i couldn't run the code as below i get errors
f0=200;
f1=350;
FS=700;
tglobal=0:1/FS:3;
signal=chirp(tglobal,f0,1,f1);
%plot(tglobal,signal);
noise=randn(length(tglobal),1);
for x=0:1/FS:3
if x>=1 || x<=2
x=x+1;
signal1=randn(size(x.*FS+1),1);
signal=chirp(x,f0,1,f1)+signal1;
figure(1);
end
end
figure(3);
plot(tglobal,signal);

回答(0 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by