how to insert a txt file inside a function by using gui
Afficher commentaires plus anciens
Hi all.Iam having a function like the one given below
v = importdata('myfile.txt'); V1 = v(:,1); v2 = v(:,2);
Here, instead of writing the file name in the program I want to give the file as an input through gui.so I created a gui with a browse button .How do I import the file name into the function
% launch GUI
my_gui;
% get the handle to the GUI and wait for it to be closed
waitfor(my_gui);
% continue with script
Now it is showing me an error. "error in importdata"like this. what should I do now. Help me out
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Whos dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!