I want to implement ASK .I am facing problem with "wwve_gen".

조회 수: 1 (최근 30일)
Muhammad
Muhammad 2022년 12월 5일
댓글: Muhammad 2022년 12월 5일
Here is my code
clear all;
close all;
n=5;
b=[1 0 0 1 0];
fc=8000;
Rb=1000;
t=1/Rb;
xu = waveplot(b,'unipolar_nrz');
fs = 1/t;
ts = 1/fs:1/fs:1;
xs = cos(2*pi*fc*ts);
sa = mixer( xu, xs );
subplot(211), waveplot(xu)
subplot(212), waveplot(sa)
figure
interval [ 0, 20 kHz ].
fr = [ 0, 20000 ];
subplot(211), psd(xu,fr)
subplot(212), psd(sa,fr)
  댓글 수: 1
Muhammad
Muhammad 2022년 12월 5일
xu = wave_gen(b,'unipolar_nrz'); % here is the main issue
fs = 1/t;
ts = 1/fs:1/fs:1;
xs = cos(2*pi*fc*ts);
sa = mixer( xu, xs );
subplot(211), waveplot(xu)
subplot(212), waveplot(sa)
figure

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

답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by