Effacer les filtres
Effacer les filtres

uigetfile and fileread combined

3 vues (au cours des 30 derniers jours)
polo Mahmoud
polo Mahmoud le 7 Nov 2019
Commenté : polo Mahmoud le 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

Réponse acceptée

Walter Roberson
Walter Roberson le 7 Nov 2019
fullname = fullfile(pathname, filename);
S = fileread(fullname);
  1 commentaire
polo Mahmoud
polo Mahmoud le 7 Nov 2019
thank you :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by