Matlab
Matlab
Section Break
Code Issues
Run and Advance
ctor Generate Run Run Step Stop
Debugger Test Section Run to End
CODE ANALYZE TEST SECTION RUN
ommand WindoW
lew to MATLAB? See resources for Getting Started.
utocorrelation of x(n):
4.0000 11.0000 20.0090 30.0000 20.000 11.0000 4.0000
ergy of x(n)30
tocorrelation of x(n) at zero lag: 30
atworks.com
Section Break
Code Issues
Q Find Run and Advance
oo Refactor Debugger Generate Run Run Step Stop
Bookmark Test Section Run to End
NAVIGATE CODE ANALYZE TEST SECTION RUN
AB Drive
:
<lamp.m X sine.m × untitled.m X untitled2.m X untitled3.m X labhW.m X Figure 1 ×
IMATLAB Drive/labhw.m
25 Sequence x(n)
4
26 % Plot the results
27
figure;
28
29 subplot(3,1,1);
stem(x);
31 title(' Sequencè x(n)'); 0.5 1.5 25 3.5 4.5
Energy of x(n): 30
Autocorrelation of x(n) at zero lag: 30