How do i make m file to ask me for the data file?

1 view (last 30 days)
This should be simple, but I can't find the answers from the internet...
When I run a m-file, i want the file to open up the load tab and ask me to select any data file within the directory.
For example, I got 2 column data files a.txt, b.txt, c.txt and so on.... with 1st column of the data file being time and 2nd column being speed.
I wanna plot the data, but want the m-file to ask me which data file I want the data from.
What command should i use?

Accepted Answer

Stalin Samuel
Stalin Samuel on 15 Jun 2015

More Answers (0)

Categories

Find more on File Operations 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!