Determine Matrix