DSPRelated.com
Forums

extraction of chirp signal

Started by swathi January 18, 2008
hii....i want code for a chirp signal.......in c language ......

matlab code is:
fs=3e9;                               //sampling freqncy=3000MHZ
t=0:1/fs:1023/fs                  //time
y=chirp(t,940e6,1023/fs,106e7);
figure(1);
specgram(y,256,fs,256,250);
n=2;
point=256;
for m=1:256:1024;
 k=y(m:m+point-1);
 z=fft(k);
 figure(n);

 plot(abs(z));
 n=n+1;
end
      aim of our project is 2 extract a linear FM signal ..i.e.,chirp
signal which we receive 4m our enemy target.......4 dat v need 2 rite
the bove code in "c" language......
cud nyone plz help me in dis.....
swathi wrote:
> hii....i want code for a chirp signal.......in c language ...... > > matlab code is: > fs=3e9; //sampling freqncy=3000MHZ > t=0:1/fs:1023/fs //time > y=chirp(t,940e6,1023/fs,106e7); > figure(1); > specgram(y,256,fs,256,250); > n=2; > point=256; > for m=1:256:1024; > k=y(m:m+point-1); > z=fft(k); > figure(n); > > plot(abs(z)); > n=n+1; > end > aim of our project is 2 extract a linear FM signal ..i.e.,chirp > signal which we receive 4m our enemy target.......4 dat v need 2 rite > the bove code in "c" language...... > cud nyone plz help me in dis.....
I am not much better at decoding strange spelling than a Matlab compiler. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
On Fri, 18 Jan 2008 11:47:45 -0500, Jerry Avins <jya@ieee.org> wrote:

>swathi wrote: >> hii....i want code for a chirp signal.......in c language ...... >> >> matlab code is: >> fs=3e9; //sampling freqncy=3000MHZ >> t=0:1/fs:1023/fs //time >> y=chirp(t,940e6,1023/fs,106e7); >> figure(1); >> specgram(y,256,fs,256,250); >> n=2; >> point=256; >> for m=1:256:1024; >> k=y(m:m+point-1); >> z=fft(k); >> figure(n); >> >> plot(abs(z)); >> n=n+1; >> end >> aim of our project is 2 extract a linear FM signal ..i.e.,chirp >> signal which we receive 4m our enemy target.......4 dat v need 2 rite >> the bove code in "c" language...... >> cud nyone plz help me in dis..... > >I am not much better at decoding strange spelling than a Matlab compiler. > >Jerry
Hi Jerry, swathi's post was one of those were we don't know whether to laugh or cry. (I still can't get used to posts that start out with "I want...". I still find that to be irritating. Call me old fashioned Jerry.) If swathi's enemy happens to be our enemy, we're in for trouble. See Ya', [-Rick-]