Adapting to hutt matlab