Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

open

Open file for writing video data

Syntax

open(v)

Description

example

open(v) opens the file associated with v for writing. When you open the file, all properties of the object become read only. open discards all existing contents of the file.

Examples

collapse all

Create a VideoWriter object to write a new Motion JPEG AVI file.

v = VideoWriter('newfile');

Open the file for writing.

open(v)

Write a 300-by-300 matrix of data to the file.

writeVideo(v,rand(300))

Close the file.

close(v)

Input Arguments

collapse all

Input VideoWriter object. Use VideoWriter to create the object.

Introduced in R2010b

Was this topic helpful?