how to use for loop to get updated eveytime while saving inage

조회 수: 2 (최근 30일)
shubham patil
shubham patil 2017년 8월 19일
답변: Image Analyst 2017년 8월 19일
global i;
name=get(handles.edit1,'string');
y=strcat(name,k1,'.png')
imwrite(i,y)
problem is i m not able to update "K1"
how can i use for loop to update evertime n start from the last vale whenever started again
ex image='nameK1.png
img1=sp1.png img2=sp2.png ....
should go like this

채택된 답변

KSSV
KSSV 2017년 8월 19일
n=10;
for i=1:n
img = strcat('sp',num2str(i),'png')
end

추가 답변 (1개)

Image Analyst
Image Analyst 2017년 8월 19일
This is a FAQ question, so see the FAQ for code samples: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by