Reading files with extension.

3 ビュー (過去 30 日間)
ZK
ZK 2013 年 2 月 7 日
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.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 7 日
A = dir([uigetdir('C:\','Select directory of a files'),'/*.a']);
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 7 日
A = dir([uigetdir('C:\','Select directory of a files'),'/*.a']);
filename={A.name}
ZK
ZK 2013 年 2 月 8 日
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

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by