How do you request an input inside disp?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
João
el 29 de Nov. de 2014
Comentada: João
el 29 de Nov. de 2014
In the program i am developing the user is asked to give a name, through an input, to the file he wants to save. I want to make a disp at the end to show the user a message saying his file was saved just as he asked for in the input. Any help would be greatly appreciated.
Thanks in advance, Best Regards
0 comentarios
Respuesta aceptada
Mischa Kim
el 29 de Nov. de 2014
João, you could use inputdlg
prompt = {'Input file name:'};
name = 'File name';
numlines = 1;
answer = inputdlg(prompt,name,numlines)
Más respuestas (0)
Ver también
Categorías
Más información sobre Workspace Variables and MAT Files en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!