I suggest using OpenCV library with MATLAB. It contains lots of ready-algorithms and detectors/trackers.
if your camera is stationary (not moving) then you can detect motion using Gaussian Mixture-based Background/Foreground Segmentation (MOG, MOG2) see this for more details: https://docs.opencv.org/3.1.0/d1/dc5/tutorial_background_subtraction.html.
If your camera is moving, you should compensate the camera motion first ( search for moving object detection using moving camera).
Finally, for object tracking, see this link:https://www.learnopencv.com/object-tracking-using-opencv-cpp-python/
You will need the Image Acquisition Toolbox to follow the live video. you can use OpenCV (www.opencv.org) which contains video sequence acquisition algorithms as well as algorithms for object tracking.