I want to make my program interactive
Mostrar comentarios más antiguos
Hiee
I have a program which starts with agiven file name as a input...
my code starts with
txt-data = fileread('F:\data.txt'); ................. .......... ......
I want that when I run my program it should ask for the path for the file name or the file itself...and any user has to give that,,how can i do that without not changing the path name in program every time
Respuestas (1)
TAB
el 18 de Dic. de 2012
0 votos
2 comentarios
tusu
el 19 de Dic. de 2012
Walter Roberson
el 19 de Dic. de 2012
[filename, filepath] = uigetfile('Choose a file');
fullname = fullfile(filepath, filename);
txt_data = fileread(fullname);
Categorías
Más información sobre App Building 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!