working on matlab plotting