uigetfile and fileread combined

1 visualizzazione (ultimi 30 giorni)
polo Mahmoud
polo Mahmoud il 7 Nov 2019
Commentato: polo Mahmoud il 7 Nov 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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Dialog Boxes in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by