uigetfile and fileread combined

1 Ansicht (letzte 30 Tage)
polo Mahmoud
polo Mahmoud am 7 Nov. 2019
Kommentiert: polo Mahmoud am 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by