Filter löschen
Filter löschen

Identify the file number from the folder

6 Ansichten (letzte 30 Tage)
Turbulence Analysis
Turbulence Analysis am 28 Jan. 2021
Hi,
I have set of .bmp files saved inside the folder, it's saved in the seqeunce as follows R00009, R00089, R00198 ... ... R09180. I need to extract the file number and save it in matirx, for e.g. in R00089, I need to get only 89.. Is there a way to do this...??

Akzeptierte Antwort

Stephen23
Stephen23 am 28 Jan. 2021
Bearbeitet: Stephen23 am 28 Jan. 2021
D = 'absolute or relative path to where the files are saved';
S = dir(fullfile(D,'R*.bmp'));
V = sscanf([S.name],'R%fbmp')

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by