Problem with the dir function (it is not reading the images in the specified folder)

3 ビュー (過去 30 日間)
Said Rahal
Said Rahal 2012 年 7 月 9 日
I need to process a sequence of images in my project, So I stored the images (jpg) in the matlabroot in a folder called "image". I used the dir function but the output is not reading the images. The matlab syntax is shown below:
f = fullfile (matlabroot,'image')
>> diroutput = dir (fullfile(f,'*.jpg'))
diroutput =
0x1 struct array with fields:
name
date
bytes
isdir
datenum
Please, can anyone suggest a solution or point out the problem?
THANKS
  3 件のコメント
Honglei Chen
Honglei Chen 2012 年 7 月 9 日
Also I believe dir is case sensitive. Is it possible that you have JPG as the extension istead of jpg? I know I got that on Linux all the time.
Said Rahal
Said Rahal 2012 年 7 月 9 日
Thanks fellows, It works now.

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

回答 (0 件)

カテゴリ

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