how to let user define a name of avi file
2 次查看(过去 30 天)
显示 更早的评论
Hi, im making avi file using movie2avi function. im wondering if there is a way to let user choose a name of that avi file...i tried input function but nothing worked so far...Thanks!!
1 个评论
Matt Kindig
2013-4-11
Why didn't input work? Can you post your code?
You also might want to look at uiputfile(), a GUI version of a file choose prompt.
采纳的回答
per isakson
2013-4-11
编辑:per isakson
2013-4-11
"... nothing worked so far ..."
There are many ways to let the user provide a filename. This is the simplest I can think of.
>> filespec = input('Please give a filename: ');
Please give a filename: 'c:\temp\my.avi'
>> disp(filespec)
c:\temp\my.avi
>> movie2avi( mov, filespec )
Undefined function or variable 'mov'.
>>
I had not assigned a value to mov.
You must describe your problem in some more detail.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!