Here are a few links to help you out:
- A post from MATLAB Answers:
- A documentation example. Check the section named "Create New Video with the Image Sequence":
- If you face further issues, please consider sharing the exact error message or sample data files through which the error can be reproduced.