Professional Documents
Culture Documents
1. Copy Lab_3_data to your work directory and load it ( load('Lab_3_data.mat') or simply drag it
into the terminal).
a. The following data is loaded: dt=time sample rate, df=frequency sample rate,
freq_vector=vector of frequency values, nt=total number of time samples,
pulse=wavelet, reflectivity=reflectivity vector, time_vector=vector of time values.
b. What is the Nyquist frequency?
c. Examine the values in the reflectivity vector, what do they represent?
2. Convolve the wavelet with the reflectivity vector and compare.
a. pulse_reflec_conv=conv(pulse,reflectivity);
i. What is the length of the convolution and why?
b. Pad the wavelet and reflectivity with zeros on either end so their
lengths match the convolution.
pulse_pad=[zeros(64,1);pulse;zeros(63,1)];
reflectivity_pad=[zeros(64,1);reflectivity;zeros(63,1)];
c. Plot the wavelet, reflectivity and convolution
figure;
subplot(3,1,1);
plot(pulse_pad);
title('Wavelet ');
subplot(3,1,2);
plot(reflectivity_pad);
title('Reflectivity ');
subplot(3,1,3);
plot(pulse_reflec_conv);
title('Convolution ');
xlabel('Time ')
(please paste your plot here)