Question: here is the graph generated 6. Enter following Matlab codes into editor and run to get answer and Figures with answer. Hint: you need Chapter

 here is the graph generated 6. Enter following Matlab codes into

editor and run to get answer and Figures with answer. Hint: you

here is the graph generated

6. Enter following Matlab codes into editor and run to get answer and Figures with answer. Hint: you need Chapter 4 Example Folder open to use Attach "Publish copy "welch" command close all: clear all: length (x) ts 1000; nfft 128; PS = abs ((fft (x),-2)/length (x); half_length fix(length (PS)/2) f = (1:half-length). fs/ (2-half-length); subplot (1,2,1) plot (f, PSs(1:half length), 'k') xlabel( Frequency (Hz)FontSize' ,14): ylabel ('Power Spectrum, Fontsize'.14): title( Standard Spectrum, 'FontSize 12): s Load data (variable x) Sampling frequency Segnent aize for averaging t Calculate un-averaged PS Find data length /2 t Frequency vector for plotting 8 Plot un-averaged Power Spectrum t Use 99% overlap [PS-avg , f)-welch (x,nf ft ,nf ft-1, fs); subplot (1.2,2) plot(f, PS avg, 'k') xlabel ( ' Frequency (Hz) 'FontSize,14) ylabel ( Power Spectrum'Pontsize 14) title( Periodogram. FontSize,12): [PS-avg, f] = welch (x,nfft,nfft-1,fs); subplot (1,2,2) plot(f, PS avg, ') xlabel('Frequency (Hz)FontSize,14) ylabel ("Power Spectrum, 'FontSize'.14) title( Periodogram', 'PontSize,12): Plot averaged Power Spectrum t Use 99% overlap 8 Plot averaged Power Spectrum a. What is the signal vector and size? b. Draw Figures with only axis and title and location c. How the standard or unaveraged spectrum was calculated? List the Matlab code d. What was the segment length used for averaging? Maximum overlapping points? 6. Enter following Matlab codes into editor and run to get answer and Figures with answer. Hint: you need Chapter 4 Example Folder open to use Attach "Publish copy "welch" command close all: clear all: length (x) ts 1000; nfft 128; PS = abs ((fft (x),-2)/length (x); half_length fix(length (PS)/2) f = (1:half-length). fs/ (2-half-length); subplot (1,2,1) plot (f, PSs(1:half length), 'k') xlabel( Frequency (Hz)FontSize' ,14): ylabel ('Power Spectrum, Fontsize'.14): title( Standard Spectrum, 'FontSize 12): s Load data (variable x) Sampling frequency Segnent aize for averaging t Calculate un-averaged PS Find data length /2 t Frequency vector for plotting 8 Plot un-averaged Power Spectrum t Use 99% overlap [PS-avg , f)-welch (x,nf ft ,nf ft-1, fs); subplot (1.2,2) plot(f, PS avg, 'k') xlabel ( ' Frequency (Hz) 'FontSize,14) ylabel ( Power Spectrum'Pontsize 14) title( Periodogram. FontSize,12): [PS-avg, f] = welch (x,nfft,nfft-1,fs); subplot (1,2,2) plot(f, PS avg, ') xlabel('Frequency (Hz)FontSize,14) ylabel ("Power Spectrum, 'FontSize'.14) title( Periodogram', 'PontSize,12): Plot averaged Power Spectrum t Use 99% overlap 8 Plot averaged Power Spectrum a. What is the signal vector and size? b. Draw Figures with only axis and title and location c. How the standard or unaveraged spectrum was calculated? List the Matlab code d. What was the segment length used for averaging? Maximum overlapping points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!