필터 지우기
필터 지우기

what does if(s(j+1)==y1(j+1)) mean?

조회 수: 1 (최근 30일)
ainun syafiqah
ainun syafiqah 2021년 1월 12일
답변: SaiDileep Kola 2021년 1월 15일
%Demodulation process
for i=1:6
for j=(i-1)*100:i*100
if(s(j+1)==y1(j+1))
x(j+1)=1;
else
x(j+1)=0;
end
end
end
%plot ASK Demodulated Signal
subplot(4,1,4);
plot(
t,x,'r');
title('ASK Demodulated Signal');
xlabel('time(s)');
ylabel('amplitude');
  댓글 수: 3
ainun syafiqah
ainun syafiqah 2021년 1월 12일
can i also know what type of demodulation is this?
dpb
dpb 2021년 1월 12일
편집: dpb 2021년 1월 12일
"can i also know what type of demodulation is this?"
Dunno...what's a Modulated ASK signal?
Looks like the whole double loop could be dispensed with as
i1=1;
i2=601;
x=double(s(i1:i2)==y1(i1:i2));

댓글을 달려면 로그인하십시오.

답변 (1개)

SaiDileep Kola
SaiDileep Kola 2021년 1월 15일
Ask modulation is simply multiplying data sequence(0,1) with a continuous wave, so you get signal at places of 1's and get no signal at 0's, the reverse is done at demodulation to check if the signal is present and assign as 1 and others as 0.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by