open files from different directorys
Mostrar comentarios más antiguos
I have to load data from a .m file to a uitable, thats my code:
diretorio = uigetdir;
filename = uigetfile('*.mat','Select the MATLAB code file');
d = ' \';
e = strtrim(d); % Usado para salvar "/" em forma de string
Dados_1 = strcat(diretorio,e,filename);
Dados_2 = open(Dados_1);
As you can see, its not functional, once i need to ask for the directory name, the file name, then manipulate strings and finally open it. Is there a function that opens files from different directorys?
Respuesta aceptada
Más respuestas (0)
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!