This is my matlab class question example of code that uses a
This is my matlab class question.
example of code that uses a loop, then use a built-in function to vectorize the loop instead.
Solution
This code computes the cumulative sum of a vector at every fifth element
Using vectorization, you can write in MATLAB process with out using any loop:
