Question: just need problem 3. please show in matlab thank you %% Problem 1 (1 point) % Use a loop to generate the first 10 numbers
%% Problem 1 (1 point) % Use a loop to generate the first 10 numbers of the Fibonacci sequence, % inlcusive of 0 and 1. The sequence starts with O and 1 and creates the next number by adding the % previous two. %% Problem 2 (1 point) % Use logical tests to generate a square wave with period T = 10 (seconds) % hint: can start with % T = 10; % t = linspace(0, T, 1024); % use logical tests to make a square wave, then plot the wave on a figure %% Problem 3 (1 point) Use this website to learn what is the Fourier series representation of a % square wave: mathworld.wolfram.com/Fourier Series SquareWave.html % beware! on that site, their 2L is one period, so our T % Use a for loop to sum up the first N = 5 terms in the Fourier series for % a square wave or period T = 10 s, plotting the results after each addition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
