Hey!
To connect your GoPro to MATLAB, you can use the ipcam object. Further description is provided here in this Answer.
Further, this video might be useful to you in the tracking part of your project: https://www.mathworks.com/videos/object-recognition-deep-learning-and-machine-learning-for-computer-vision-121144.html
Hope this helps!