Reading an array from excel sheet

Hi,
I have several images in different folders, say A , B , C , D
I wrote the name of the folder in excelsheet using matlab, now I want to access all these folders one by one so that I can take out images from each folder for my further evaluation.
How can i do that using FOR loop?
The name of folders(A B C D) is written in column - A2:A5
After taking the images, i want to obtain the time it takes for further image processing and once I obtain the time(in sec), i want to put it in an array so that in the end I can put those values back in my excel sheet.
Thanks in advance

回答 (2 件)

KSSV
KSSV 2018 年 11 月 17 日

0 投票

[num,txt,raw] = xlsreadmyfile) ;
The txt/ raw variable from the above should be hjaving your required data.....you can run a loop along those variables.
But, note that you can access folder, subfolders and files straight away from MATLAB usig dir.

2 件のコメント

Gunjan Shah
Gunjan Shah 2018 年 11 月 17 日
Can you be more specific?
Yes I have directory, but there are many folders, and I want to take photos from all these folders one by one. So it will be convinient to tke data from excel sheet.
KSSV
KSSV 2018 年 11 月 17 日
編集済み: KSSV 2018 年 11 月 17 日

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

Gunjan Shah
Gunjan Shah 2018 年 11 月 23 日

0 投票

Nevermind, I found the answer myself.
I used strcat to remove the unwanted ' ' as well as { }

カテゴリ

ヘルプ センター および File ExchangeData Import from MATLAB についてさらに検索

製品

リリース

R2017b

質問済み:

2018 年 11 月 17 日

回答済み:

2018 年 11 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by