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

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 日

0 投票

n=10;
for i=1:n
img = strcat('sp',num2str(i),'png')
end

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2017 年 8 月 19 日

回答済み:

2017 年 8 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by