clear all nomiFiles=dir("*.png"); testo=sprintf(" \n \n
\nThis is a paragraph.
\n")); if (isempty(nomiFiles)) error('No PNG files found in the current directory.'); else % Display the names of the found PNG files for i = 1:length(nomiFiles) disp(nomiFiles(i).name); immagine=nomiFiles(i).name; testo=strcat(testo, sprintf("