Identify the file number from the folder

1 visualización (últimos 30 días)
Turbulence Analysis
Turbulence Analysis el 28 de En. de 2021
Comentada: Turbulence Analysis el 29 de En. de 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...??

Respuesta aceptada

Stephen23
Stephen23 el 28 de En. de 2021
Editada: Stephen23 el 28 de En. de 2021
D = 'absolute or relative path to where the files are saved';
S = dir(fullfile(D,'R*.bmp'));
V = sscanf([S.name],'R%fbmp')
  1 comentario
Turbulence Analysis
Turbulence Analysis el 29 de En. de 2021
Thanks a lot, Stephen.. It's working perfectly.. !!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by