{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ASSIGNMENT1 - MATLAB CODE(1)Range Imaging using HAMMING...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
MATLAB CODE: (1)Range Imaging using HAMMING WINDOW. %%% Hamming Window %%% %%% TIMING %%% tau=1e-6; % pulse duration alpha=6e14; % chirp rate B=(alpha*tau)/pi; % bandwidth dt=1/B; % nyquist sampling rate dt=dt/1.2; % guard band %%% TARGET %%% xc=1000; % mean range x0=100; % target area size (+,-) c=3e8; % propagation speed fc=1e9; % carrier frequency ts=2*(xc-x0)/c; % start sampling time tf=2*(xc+x0)/c+tau; % end sampling time N=2*ceil(0.5*(tf-ts)/dt); % Number of samples t=ts+(0:N-1)*dt; % time array dx=c*dt/2; % range spacing x=xc+dx*(-N/2:N/2-1); % range array %%% SIMULATION %%% ntarget=5; % number of targets xn=zeros(1,ntarget); % range location initialisation fn=xn; % reflectivity initialisation xn(1)=xc; fn(1)=0.8; xn(2)=xc-0.35*x0; fn(2)=0.5; xn(3)=xc+0.5*x0; fn(3)=0.7; xn(4)=xc-0.9*x0; fn(4)=1.0; xn(5)=xc+0.6*x0; fn(5)=0.9; s=zeros(1,N); % initializing echo array for i=1:ntarget td=t-2*xn(i)/c I=find((td>0) & (td<=tau)),I; nI=length(I); s(I)=s(I)+fn(i)*exp(j*2*pi*fc*td(I)+j*alpha*(td(I).^2)).*(hamming(nI))'; end ; %%% ADDING WHITE NOISE %%% var=input( 'variance of noise = ' ); n=sqrt(var/2)*(randn(1,N)+j*randn(1,N)); s=s+n; sb=s.*exp(-j*2*pi*fc*t); % basband conversion %%% SYNTHESIZING THE REFERENCE SIGNAL %%%
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
s0=zeros(1,N); td=t-(2*xc)/c; I0=find((td>0) & (td<=tau)); nI0=length(I0); s0(I0)=exp(j*2*pi*fc*td(I0)+j*alpha*(td(I0).^2)).*(hamming(nI0))'; s0b=s0.*exp(-j*2*pi*fc*t); % baseband conversion %%% IMAGING %%% sb=fftshift(fft(fftshift(sb))); s0b=fftshift(fft(fftshift(s0b))); F=sb./s0b; Fm=sb.*conj(s0b); f=fftshift(ifft(fftshift(F))); fm=fftshift(ifft(fftshift(Fm))); figure; subplot(2,1,1); plot(x,abs(f)); xlabel( 'Range' ); ylabel( 'Magnitude' ); title( 'Range imaging' ); subplot(2,1,2); plot(x, abs(fm)); xlabel( 'Range' ); ylabel( 'Magnitude' ); title( 'Range imaging using Match Filtering' ); (2)Range Imaging using HANNING WINDOW.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern