Can someone explain to me how to save our converted image (from *.ppm into *.pgm) in specific directory in matlab..
Here is my code.
pathName = 'D:\Matlab\Training\PGM_Files';
% Create it if it doesn't exist.
if ~exist(pathName, 'dir')
mkdir(pathName);
% This will create to the full depth of the path.
% Upper folder levels don't have to exist yet.
end
fullFileName = fullfile(pathName);
pgm_File_Images(loop1,1)=imwrite((Train_Images,['data',num2str(loop1),'.pgm']),
fullFileName);
I want to save all my file into folder PGM_Files. But everytime I got error
Expression or statement is incorrect--possibly unbalanced (, {, or [.
How to fix it??