How are you using MATLAB to solve this problem? If you use the camera calibration tool in the Computer Vision Toolbox, you could track your object within a known plane, and the positions that you get after applying camera calibrations may help solve your problem.
If you have more specific questions after starting on your problem please post them.