uigetfile and fileread combined

2 visualizaciones (últimos 30 días)
polo Mahmoud
polo Mahmoud el 7 de Nov. de 2019
Comentada: polo Mahmoud el 7 de Nov. de 2019
Hi i can open my file by use of
S = fileread('coord.txt')
but i want to combine this to my other code where i use
[filename,pathname] = uigetfile({'*.txt'},'Load Coordinates for structure');
so make S still read the file like before with fileread but i want to be able to combine this to a pop up window

Respuesta aceptada

Walter Roberson
Walter Roberson el 7 de Nov. de 2019
fullname = fullfile(pathname, filename);
S = fileread(fullname);

Más respuestas (0)

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by