MATLAB: How to save a video created by ‘VideoWriter’ to specific file other than current file folder
savevideowriter
I have created a video using 'VideoWriter'. However, it seems this video can only be save under the current file folder. How can I save the video to a specific file folder?
Thanks in advance!
Andy
Best Answer
Provide the full path to the location you want to save the file to when creating VideoWriter. On Windows for example:
There are several ways to build file names that include the directory you want to save your file in. The easiest option is to use thefullfile function to create it. Then use the appropriate function (for instanceaudiowrite for the.wav file) to save it.
Best Answer