Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with matlab! I am not the best at it and need a guide to make sure I am on the right path!

I need help with matlab! I am not the best at it and need a guide to make sure I am on the right path! The code provided is the code being used as the file in the picture

Code:

tau = 10*(90e-6); % Signal Duration / Pulse Width

CarFrq = 2000e3; % Carrier/Center Frequency

Pave = 2.37; % Average LFM Signal Power

Fsamp = 20*CarFrq; % Sample Frequency

Tsamp=1/Fsamp; % Sample Time / Spacing

t = 0:Tsamp:tau-Tsamp; % Time Vector

% Create an LFM signal with Pave

pcr = 190; % Pulse Compression Ratio

flow = CarFrq-((1/tau)/2)*pcr; % Lower LFM Freq

fup = CarFrq+((1/tau)/2)*pcr; % Upper LFM Freq

coeff1 = (fup-flow)/(2*(tau-Tsamp));

coeff2 = flow;

LFMsig = sqrt(2*Pave)*cos(2*pi*(coeff1*t.^2 + coeff2*t));

PestTime = var(LFMsig)+mean(LFMsig)^2; % Estimated Power (Time Domain)

% Generate and Plot LFM Signal and PSD

figure

subplot(2,1,1) % Time Domain Waveform

plot(t,LFMsig,'linewidth',1.3)

grid

title('Time Domain Response of LFM Signal')

xlabel ('Time (Sec)')

ylabel ('Amplitude')

subplot(2,1,2) % Spectral PSD

delf = 1/tau; % Freq Sample Spacing

fplot=0:delf:Fsamp/2; % Freq scale - 0 to Fs/2

fplot(length(fplot))=[];

LFMspec = fft(LFMsig)/length(LFMsig); % FFT of LFM Signal

MaxSpec = max(abs(LFMspec));

NormSpec = LFMspec(1:length(fplot))/MaxSpec; % Normalize FFT

PestFreq = sum(abs(LFMspec).^2); % Estimated Power (Freq Domain)

% Plot Norm PSD (Pos Freqs ONLY)

plot(fplot,10*log10(abs(NormSpec).^2),'linewidth',1.5);

set(gca,'YLim',[-20 1])

grid

title('Normalized PSD of LFM Signal')

xlabel ('Frequency (Hz)')

ylabel ('PSD ... |Fourier|^2')

image text in transcribed

Holse power at the output of h(t)sys. Assume the spectral response of h(t) sim is an Ideal Rectangular Response (baseband) centered at f=0 and spanning =1/(2Tsamp) Hz where Tsamp=1/fsamp is the sample time spacing/interval. The spectral response of h(t)sys will be dependent upon the filters considered. For this project, a 6th-Order Butterworth filter is considered. 1. Using the linear_fm_gen_v1.m file provided, determine the -3.0 dB and -10 dB bandwidths of the resultant LFMsig. In what bandwidth is ALL of the simulated LFM signal power contained? 2. Using MATLAB's randn function, generate realizations of AWGN for n(t) such that a specific (S/N)sim is achieved. What is the required scale factor for randn which produces (S/N)sim=0:0 dB? In what bandwidth is ALL of the simulated noise power contained? 3. Using MATLAB's built-in Butterworth and filtfilt functions implement h(t)sys, filter both the LFM signal and generated noise realizations for (S/N)sim=(-10.0, 10.0) in 0.5 dB steps (minimum). Provide a plot of (S/N)sim vs. (S/N)sys. Use a 6th-Order filter having a -3.0 dB bandwidth matching the -3.0 dB bandwidth of the LFM signal. Comnara (dirme tho Holse power at the output of h(t)sys. Assume the spectral response of h(t) sim is an Ideal Rectangular Response (baseband) centered at f=0 and spanning =1/(2Tsamp) Hz where Tsamp=1/fsamp is the sample time spacing/interval. The spectral response of h(t)sys will be dependent upon the filters considered. For this project, a 6th-Order Butterworth filter is considered. 1. Using the linear_fm_gen_v1.m file provided, determine the -3.0 dB and -10 dB bandwidths of the resultant LFMsig. In what bandwidth is ALL of the simulated LFM signal power contained? 2. Using MATLAB's randn function, generate realizations of AWGN for n(t) such that a specific (S/N)sim is achieved. What is the required scale factor for randn which produces (S/N)sim=0:0 dB? In what bandwidth is ALL of the simulated noise power contained? 3. Using MATLAB's built-in Butterworth and filtfilt functions implement h(t)sys, filter both the LFM signal and generated noise realizations for (S/N)sim=(-10.0, 10.0) in 0.5 dB steps (minimum). Provide a plot of (S/N)sim vs. (S/N)sys. Use a 6th-Order filter having a -3.0 dB bandwidth matching the -3.0 dB bandwidth of the LFM signal. Comnara (dirme tho

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Multifractal Detrended Analysis Method And Its Application In Financial Markets

Authors: Guangxi Cao, Ling-Yun He, Jie Cao

1st Edition

9811079153, 978-9811079153

More Books

Students also viewed these Finance questions