Oracle Sql Loop Through Array Matlab Onramp