An example using a function within a for loop in MATLAB.

Published --