Passing variable filename to movie2avi
1 次查看(过去 30 天)
显示 更早的评论
Here's the basis for what I'm trying to do:
fname = inputdlg('Enter Filename without extension','Input');
name = strcat(fname,'.avi');
movie2avi(handles.movie, name,'fps',handles.fps,...
'compression','None')
This gives an error: "Invalid input arguments. Second input argument must be a filename." Is this a limitation of matlab that the argument has to be a string, and can't be a variable pointing to a string? If so, is there a way around this?
Thanks, Neil
采纳的回答
Ben11
2014-7-9
Maybe try this:
fname = inputdlg('Enter Filename without extension','Input');
name = strcat(fname,'.avi');
movie2avi(handles.movie, name{1},'fps',handles.fps,...
'compression','None')
Since the answer to the input dialog is stored in a cell array...
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!