how to insert a txt file inside a function by using gui
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!