I am sorry I do not know what Matlab is, but I know you can easily do this action on any operating system using the free and open-source GIMP image editor (free as in firefox). download it here: http://www.gimp.org I hope this helps!