Vba Function Input Array Matlab For Loop