(Solved) : Note Need Help Part Highlighted Red Matlab Please Type Handwriting Difficult Read Tmat 1×4 Q41423710 . . .

(Note: I just need help with the part highlighted in red)

In MATLAB (please type it out— handwriting is difficult to read):

t.mat is a 1×401 double filled with small decimal numbers

xt.mat is a 1×401 double fille with small decimal numbers

Q1. (30 points) xt.mat is a sinusoidal signal corrupted with two spikes as seen in Figure 1. Load xt.mat vector and its t

Q1. (30 points) ‘xt.mat’ is a sinusoidal signal corrupted with two spikes as seen in Figure 1. Load ‘xt.mat’ vector and its time ‘t.mat’ vector into MATLAB environment using load function (to successfully loading these variables, make sure you have ‘xt.mat’ and ‘t.mat’ in the current folder for MATLAB directory). Develop a code to locate the position of the two spikes and remove them to produce a signal as seen in Figure 2. You should do so using one of MATLAB’s function. Hint: one way to remove the spikes is by replacing their value with the value of the adjacent point. Figure 1: Sinusoidal noisy signal Figure 2: Denoised signal Show transcribed image text Q1. (30 points) ‘xt.mat’ is a sinusoidal signal corrupted with two spikes as seen in Figure 1. Load ‘xt.mat’ vector and its time ‘t.mat’ vector into MATLAB environment using load function (to successfully loading these variables, make sure you have ‘xt.mat’ and ‘t.mat’ in the current folder for MATLAB directory). Develop a code to locate the position of the two spikes and remove them to produce a signal as seen in Figure 2. You should do so using one of MATLAB’s function. Hint: one way to remove the spikes is by replacing their value with the value of the adjacent point. Figure 1: Sinusoidal noisy signal Figure 2: Denoised signal

Expert Answer


Answer to (Note: I just need help with the part highlighted in red) In MATLAB (please type it out — handwriting is difficult to r…