use a variable name with VideoWriter
Mostrar comentarios más antiguos
I am trying to create a program to create videos from images. I would like to use inputdlg to create a variable file name. I can use a selected path. However, it doesn't appear that VideoWriter allows you to use a variable name. Is there a way around this?
Respuesta aceptada
Más respuestas (1)
Bryan Clark
el 10 de Abr. de 2018
Editada: Walter Roberson
el 10 de Abr. de 2018
1 comentario
Walter Roberson
el 10 de Abr. de 2018
response = inputdlg('Input File Name');
fileName = response{1};
if isempty(fileName); return; end %user cancel
[dirname, basename, ext] = fileparts(fileName);
if isempty(ext); ext = '.avi'; end
fileName = fullfile(dirname, [basename ext]);
Categorías
Más información sobre Audio and Video Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!