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

1 次查看(过去 30 天)
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?

采纳的回答

Stalin Samuel
Stalin Samuel 2015-6-15

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by