Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) Use MATLAB to write a loop that splits signal x in non-overlapping segments of length 50 and places each segment in a MATLAB cell.
1) Use MATLAB to write a loop that splits signal x in non-overlapping segments of length 50 and places each segment in a MATLAB cell. For each segment, sf1), sf2),.. use F- abs(fft(sfij)) then w-find(F = max(F)) to locate the max peaks. These peaks are found in the returned vector, w. Use w(1), to determine the frequency of the cosine in segment sfi] My Code: x1Al*cos (2 pi*fl [1:N1]); x2A2*cos (2*pi*2*[1:N2]); x-[x1 x2]; % concatenated to form a single signal n-ceil(length(x)/50) 1) Use MATLAB to write a loop that splits signal x in non-overlapping segments of length 50 and places each segment in a MATLAB cell. For each segment, sf1), sf2),.. use F- abs(fft(sfij)) then w-find(F = max(F)) to locate the max peaks. These peaks are found in the returned vector, w. Use w(1), to determine the frequency of the cosine in segment sfi] My Code: x1Al*cos (2 pi*fl [1:N1]); x2A2*cos (2*pi*2*[1:N2]); x-[x1 x2]; % concatenated to form a single signal n-ceil(length(x)/50)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started