MATLAB does include standard codefor / code and codewhile / code loops , but ( as in other similar applications such as R ) , using the vectorized notation is encouraged and is often faster to execute .