필터 지우기
필터 지우기

Reading files with extension.

조회 수: 2 (최근 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 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