Azzera filtri
Azzera filtri

Reading files with extension.

2 visualizzazioni (ultimi 30 giorni)
ZK
ZK il 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.

Risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by