필터 지우기
필터 지우기

how can delete a part of image name?

조회 수: 2 (최근 30일)
aya ben mabrouk
aya ben mabrouk 2016년 5월 20일
댓글: aya ben mabrouk 2016년 5월 21일
Hello everyone, I have a folder data that contains a list of images named as follow :
AHTD3A0001_Para1.tif
AHTD3A0002_Para1.tif
AHTD3A0003_Para1.tif
.
.
AHTD3A1012_Para1
I want to delete the first part of image name ( AHTD3A) in order to replace image names such as :
0001_Para1.tif
0002_Para1.tif
0003_Para1.tif
.
.
AHTD3A1012_Para1
please any suggestion for matlab code and thanks in advance

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 20일
str={'AHTD3A0001_Para1.tif'
'AHTD3A0002_Para1.tif'
'AHTD3A0003_Para1.tif'}
out=strrep(str,'AHTD3A','')
  댓글 수: 5
Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 21일
F is the folder where your images are stored, for example
F='C:\document'
aya ben mabrouk
aya ben mabrouk 2016년 5월 21일
thanks

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by