Question: I believe my code is wrong in MATLAB, may I have help with this? Thank you. CODE: clc; clear all; disp('Problem P2.2'); disp(' '); bins
I believe my code is wrong in MATLAB, may I have help with this? Thank you.

CODE:
clc; clear all; disp('Problem P2.2'); disp(' '); bins = 100; %---- Part 1----- r1 = 2*rand(1, 100000); x1= r1; %---------------- x2= stepseq(1,1,100000); x3 = x1+x2; [yCarry,xCarry] = hist(x3, bins) bar(xCarry, yCarry);
FUNCTION:
function [x,n] = stepseq(n0,n1,n2) % Generates x(n) = u(n-n0); n1 = 0];
Graph:

3. X3(n) = x1(n) + x1(n 1) where x1(n) is the random sequence given in part 1 above. Comment on the shape of this histogram and explain the shape. 1200 1000 800 600 400 200 0 | 12 1.4 16 1.8 2 22 24 2.6 2.8 3 3. X3(n) = x1(n) + x1(n 1) where x1(n) is the random sequence given in part 1 above. Comment on the shape of this histogram and explain the shape. 1200 1000 800 600 400 200 0 | 12 1.4 16 1.8 2 22 24 2.6 2.8 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
