For Programmers: Free Programming Magazines  


Home > Archive > Matlab > August 2007 > Gaussian Pulse Generation Help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Gaussian Pulse Generation Help
Bo Bo

2007-08-31, 6:09 am

hi all,

i would like to generate gaussian pulse with 2.4Ghz as
centre frequency and 20Mhz bandwidth to test my power
amplifer... though i used gauspuls function as followings,
i could get my desired pulse shape... could u guys give me
some suggestions on my code... thanks in advance...

fc=2.4e9;
N=.0083;
tc=gauspuls('cutoff',fc,N);
t=-tc:1/(2*fc*(1+N)):tc;
[ti,tq,tr]=gauspuls(t,fc,N);
subplot(5,1,1);
plot(t,tr)
subplot(5,1,2)
tr=ti;
plot(t,tr)
tout=fft(tr);
f=4.84e9*(0:length(tout)-1)/length(tout);
subplot(5,1,3)
plot(f,abs(tout)/length(tout))
subplot(5,1,4)
plot(f,unwrap(angle(tout)))
Pout=abs(tout.^2)/length(tout);
subplot(5,1,5)
plot(f,Pout);
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com