Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

about the signal bandwidth...

Status
Not open for further replies.

shaunlu

Newbie level 3
Joined
Feb 16, 2005
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,424
hi guys,
I want to simulate the difference of signal bandwidth with different pulse shapping.
I use two kinds of pulse shaping: 1) rect shaping 2) half-sine shaping.
I whish to find out half-sine shaping gets good bantwidth efficiency....
I have created specturm diagram, but I dont know how to find out the bandwidth..(3dB bandwidth, 99% bandwidth... whatever.)

as follow is my code.
Thanks for your help...

*********************************
clc;
clear;
close all;

Chiprate=2*100; % Chiprate=1/Tc
Samplerate=50; %Samplerate=1 hz
cnt = (Samplerate/4:Samplerate:(Chiprate));
HalfSineShaping= sin(pi*cnt/(Chiprate));
Message=randint(1,100)*2-1;
SineShaped = reshape((Message'*HalfSineShaping)',1,length(Message)*length(HalfSineShaping));
RectShaping=ones(1,Chiprate/Samplerate);
RectShaped = reshape((Message'*RectShaping)',1,length(Message)*length(RectShaping));

figure;
stem(HalfSineShaping)
figure;
stem(RectShaping)

figure;
stem(SineShaped)
figure;
stem(RectShaped)

SineFFT=fft(SineShaped);
SineFFTLength = 1:length(SineFFT);
RectFFT=fft(RectShaped);
RectFFTLength = 1:length(RectFFT);

figure;
plot(SineFFTLength,SineFFT)
title('Frequency content of half-sine shaping signal')
xlabel('frequency (Hz)')
grid on;

figure;
plot(RectFFTLength,RectFFT)
title('Frequency content of rect shaping signal')
xlabel('frequency (Hz)')
 

Pls take a look at the matlab function pwelch() and spectrum().

joshuashi
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top