MATLAB 帮助中心
写入视频数据之后关闭文件
close(v)
close(v) 关闭与 v 相关联的视频文件。您必须调用 close 以确保所有数据都写入文件。对象 v 仍保留在工作区中。如果您在关闭视频文件后调用 open 函数,open 将丢弃所有现有的文件内容。
v
close
open
示例
全部折叠
创建 VideoWriter 对象以写入新的 Motion JPEG AVI 文件。
VideoWriter
v = VideoWriter('newfile');
打开要写入的文件。
open(v)
将 300×300 矩阵的数据写入该文件中。
writeVideo(v,rand(300))
关闭文件。
输入 VideoWriter 对象。使用 VideoWriter 创建该对象。
在 R2010b 中推出
VideoWriter | open | writeVideo
writeVideo
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处