Matlab HW 1 - 5B

n=[0:0.001:100000];
x=(exp(-2*n)).*(sin(3*n));
sum(x)
% be sure and multiply the sum by the small dt (in this case, 0.001) in order to solve the integral
% so the final answer would be:
sum(x)*0.001

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License