This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: %Period = ? plot( tt4, xx4) Period : .02 Frequency: 50 5: Testing code: [xx4,tt4] = syn_sin([.5,.5,.5,.5], [2,2*exp(j*pi*1.25),1,j], 2000, 6,.5); plot(tt4,xx4); 6: %% multipath for Lab #2 %c = 3e8; xv = 0:0.1:300; % vehicle locations in meters dt = 1500; % location of the transmitter dr = [100,900]; % location of the reflector G_r = 1; % gain of the reflector phi_r = pi; % phase of the reflector fo = 150e6; % in Hz lambda = c/fo % Rtv = abs(xv+j*dt); % range between xmtr and vehicle zr = dr*[1;j]; Rrefv = abs(xvzr) + abs(j*dtzr); % range between xmtr, refl and veh % delay_1 = Rtv/c; delay_2 = Rrefv/c; % X_1 = exp(j*2*pi*fo*delay_1); X_2 = G_r*exp(j*phi_r)*exp(j*2*pi*fo*delay_2); X_v = X_1 + X_2; % plot( xv, abs(X_v) ) shg...
View
Full Document
 Fall '08
 ?
 Frequency, Hertz, frequency fk

Click to edit the document details