Question: ( The arrays in MATLAB are one - based: the first element is x ( 1 ) not x ( 0 ) . ) Justify

(The arrays in MATLAB are one-based: the first element is x(1) not x(0).) Justify the values you see in the array x by first analytically determining the spectrum for x(t)=cost.
Now, create a square wave:
n=0:255;
t=n256;
ones (1,64),- ones (1,64), ones (1,64),- ones (1,64);
> plot (t,x);
Find the FFT spectrum of this square wave and plot it. Explain the magnitudes and frequencies of the FFT spectral lines.
 (The arrays in MATLAB are one-based: the first element is x(1)

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!