refuse ka matlab