Signal Energy in MATLAB
Use MATLAB to determine the energy of the sequence x[n]=2n,
−4 ≤n ≤ 4
n=-4:4;
x_n=2*n;
E=sum(abs(x_n).^2)
Chapters Getting started with MATLAB Language Initializing Matrices or arrays Conditions Functions Set operations Documenting functions Us...
MATLAB Programs/Code (matlabcoding.com)
No comments