I have a a problem with a image conversion, i am trying to convert a multiple jpg in a png. I'am write the fooling code and i am trying to save the result in another folder , but the fooling error it's show: Error using imwrite Too many output arguments. Error in cod (line 2).
if true % code
for x = 1:length(imgDir) %pwd (leitura da directoria actual)
pic = imgDir(x).name; handles.images{x}=imread(fullfile('','/Users/armandoferr/Documents/MATLAB/images/',imgDir(x).name)); a = imgDir(x).name; out = [imgDir(x).name(1:end-4) '.png']; outFile = fullfile(outDir,out); imwrite(a,outFile,'.png');end
Best Answer