필터 지우기
필터 지우기

How can i fix it?

조회 수: 1 (최근 30일)
Ara
Ara 2014년 12월 26일
댓글: Ara 2014년 12월 26일
if i looping create some pictures and i want to name it from number of loop. my loop start from index=1
and I want to write image imwrite(subimage{index},'\newimage\pic',index,'.jpg');
but it got error, how can i make my filename to be pic1.jpg and so on.
Thank you

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 12월 26일
편집: Azzi Abdelmalek 2014년 12월 26일
YourFolder='E:\matlab'
for k=1:10
FileName=sprintf('pic%d.jpg',k)
File=fullfile(YourFolder,FileName)
% do
end
  댓글 수: 1
Ara
Ara 2014년 12월 26일
thank youu

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by