What is vectorization?
Vectorization is the process of writing code for MATLAB that uses matrix opera tions or other fast builtin functions instead of using for loops. The benefits of doing this are usually sizeable. The reason for this is that MATLAB is an interpreted language. Function calls have very high overhead, and indexing ope rations (inherent in a loop operation) are not particularly fast.
============================ Vectorization is the process of writing code for MATLAB that uses matrix operations or other fast builtin functions instead of using `for’ loops. The benefits of doing this are usually sizeable. The reason for this is that MATLAB is an interpreted language. Function calls have very high overhead, and indexing operations (inherent in a loop operation) are not particularly fast.