Untitled
unknown
matlab
2 years ago
950 B
4
Indexable
clc;clear all;close all; load('bpskdata.mat'); n = 0:1:length(bpskdata)-1; x = (2^(1/2))*cos(2*pi*0.25.*n); plot(n,x) data = bpskdata(2, : ); % plot(data); carpma = x.*data; figure,plot(carpma),grid sps = 8; % sembol başına örnekleme sayısı span = 12; % filtre uzunluğu beta = 0.5; % roll off faktörü % RRC filtresi rxfilter = comm.RaisedCosineReceiveFilter('InputSamplesPerSymbol',8, ... 'RolloffFactor',beta, ... 'DecimationFactor',8); %Normalize to obtain maximum filter tap value of 1 b = coeffs(rxfilter); rrcfilter.Gain = 1/max(b.Numerator); %plotting rrc filter that we use rrcfilter_taps = b.Numerator; figure; plot(rrcfilter_taps) % rcosdesign, gösterici filtre katsayısı oluşuturur % BPSK modülasyonlu sinyalin demodülasyonu için kullanılan % gösterici filtredir. Bu birFIR filtresidir. % y0 = filter(rrcfilter_taps,1,data); y0 = conv(data,rrcfilter_taps,'same');
Editor is loading...