How I can store all images name in an excel sheet?

조회 수: 1 (최근 30일)
Zara Khan
Zara Khan 2018년 5월 5일
댓글: Zara Khan 2018년 5월 6일
My folder consisting of multiple binary images. I want to store their names in an excel sheet along with all their extracted features.

답변 (1개)

Image Analyst
Image Analyst 2018년 5월 5일
Try this:
fileInfo = dir('*.PNG');
ca = struct2cell(fileInfo)
baseFileNames = ca(1,:)'
xlswrite(excelFullFileName, baseFileNames);
  댓글 수: 8
Zara Khan
Zara Khan 2018년 5월 5일
data_set is my folder. It also showing error when am passing fileInfo(k).data_set
Zara Khan
Zara Khan 2018년 5월 6일
Reference to non-existent field 'folder'.
Error in name_save (line 5) fullFileNames{k} = fullfile(fileInfo(k).folder, fileInfo(k).name);
>> This is the error I am getting.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by