How can I get and read data files from a folder?

24 views (last 30 days)
I'm working on some data files to process radar images for analysis but I'm having issues with getting and reading the files. With the following I am able to get and read the file by manually selecting the file
[fname1, pname,ext] = uigetfile( ... {'*.gbf','GBF data file (*.gbf)'}, ... 'Select GBD file');
This works if I'm only working with one or two files but I want to work with over 1,000 files. Does anyone know a way to get and read all the files at once? Looking forward for a soon reply.
Thank you;
  1 Comment
Stephen23
Stephen23 on 7 Mar 2017
This is such a common topic that it is extensively covered in the MATLAB wiki:
and also hundreds/thousands of times on this forum:
and no doubt countless other blogs and tutorials online. Have you read any of them?

Sign in to comment.

Accepted Answer

Adam
Adam on 7 Mar 2017
  1 Comment
Agustin
Agustin on 7 Mar 2017
Thank you! This was very helpful. It was exactly what I was looking for.

Sign in to comment.

More Answers (0)

Categories

Find more on Data Import and Analysis 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!