Create Array From For Loop Matlab Example