Question 3.4: Plotting DT Exponentials with MATLAB Use MATLAB to plot the ......

Plotting DT Exponentials with MATLAB

Use MATLAB to plot the following discrete-time signals over (0 ≤ n ≤ 8): \text { (a) } x_a[n]=(0.8)^n, \text { (b) } x_b[n]=(-0.8)^n \text {, (c) } x_c[n]=(0.5)^n \text {, and (d) } x_d[n]=(1.1)^n \text {. }

Step-by-Step
The 'Blue Check Mark' means that this solution was answered by an expert.
Learn more on how do we answer questions.

To begin, we use anonymous functions to represent each of the four signals. Next, we plot these functions over the desired range of n. The results, shown in Fig. 3.10, match the earlier Fig. 3.9 plots of the same signals.

3.9
3.10
The 'Blue Check Mark' means that either the MATLAB code/script/answer provided in the answer section has been tested by our team of experts; or the answer in general has be fact checked.

Learn more on how do we answer questions.

Script File

>> n = (0:8); x_a = @(n) (0.8).^n; x_b = @(n) (-0.8).^(n);
>> x_c = @(n) (0.5).^n; x_d = @(n) (1.1).^n;
>> subplot(2,2,1); stem(n,x_a(n),’k’); ylabel(’x_a[n]’); xlabel(’n’);
>> subplot(2,2,2); stem(n,x_b(n),’k’); ylabel(’x_b[n]’); xlabel(’n’);
>> subplot(2,2,3); stem(n,x_c(n),’k’); ylabel(’x_c[n]’); xlabel(’n’);
>> subplot(2,2,4); stem(n,x_d(n),’k’); ylabel(’x_d[n]’); xlabel(’n’);

Related Answered Questions

Question: 3.19

Verified Answer:

There are several ways to find the impulse respons...
Question: 3.5

Verified Answer:

We represent the desired sinusoid using an anonymo...