Tutorial 3.2 - Matrix Operation and Manipulation
Tutorial 3.2 - Matrix Operation and Manipulation
15. Use Matlab to show that the sum of the infinite series
∑
a) n = 10 b) n = 20 c) n =30 d) n= 40
for each create a vector n in which the first element is 1, the increment is 1, and the last term is 10, 20,
30, or 40. Then use element-by-element calculations to create a vector in which the elements are .
Finally , use the sum function to add the terms in the series. Compare the values obtained in parts (a),
(b), (c) and (d) with the value of 1. (Do not forget to type semicolons at the end of commands that
otherwise will display large vectors.)