Videofilewriter step method only accepts individual image arrays (or y cr cb arrays).
Videowriter writeVideo method only accepts individual image arrays or individual frames compatible with movie structure (your mov is an array of those)
You will need to loop writing the contents of your mov structure array.
The Computer Vision Toolbox has the only Mathworks-provided routine that can read audio and video simultaneously. Otherwise you need to read them separately and match them up by time.
Best Answer