並前往https://www.mathworks.com/matlabcentral/answers/147458-how-to-find-the-left-riemann-sum-using-a-for-loop