FUNCTION REFERENCE

VideoWriter.writeVideo

Append one or more image frames to an open VideoWriter object.

Append one or more image frames to an open VideoWriter object.

Syntax

writeVideo(v, img)

Syntax

v.writeVideo(img)

Writes an RGB or grayscale image frame (or 4-D stack of frames) to an open VideoWriter object v.

Differences from MATLAB: Frame dimensions must match across all writes to the same file.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.