MATLAB: How can i draw a bounding box at a moving object.Please give me a complete code

computer vision

I am working on object tracking using kalman filter.I am trying to detect the moving object & drawing a bounding box on it.