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

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 26 de Dic. de 2014
Editada: Azzi Abdelmalek el 26 de Dic. de 2014

0 votos

YourFolder='E:\matlab'
for k=1:10
FileName=sprintf('pic%d.jpg',k)
File=fullfile(YourFolder,FileName)
% do
end

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Ara
el 26 de Dic. de 2014

Comentada:

Ara
el 26 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by