Reading files with extension.

4 views (last 30 days)
ZK on 7 Feb 2013
I'm using:
A = dir(uigetdir('C:\','Select directory of a files'));
What can I use instead of fullfife() to load only files with file extension *.a ? In this line to have absolute file names?
Thank You.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 7 Feb 2013
A = dir([uigetdir('C:\','Select directory of a files'),'/*.a']);
ZK on 8 Feb 2013
Sorry I have still -1 fid. I wish to use after it this loop:
for k=1:length(A);
fid = fopen(Ap, 'r');

Sign in to comment.


Find more on Search Path 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!