added naming and implementing a 3d plotting in matlab