saving all data from for loop after image processing
2 views (last 30 days)
I want to save my all data obtained from for loop in text file after each image processing. But it only saves last values . Can you please help me in this regard? How can I do that?
folder = pwd;% current folder
File = pngfiles(i).name;
FiE = fullfile(folder, File);
% HERE IS MY IMAGE PROCESSING CODE FOR EACH IMAGE
distances = sqrt((x - xRight).^2 + (y - yRight).^2);
distances1 = sqrt((x - xleft).^2 + (y - yleft).^2);
[rightdistance, rightinnerIndex] = min(distances);
[leftdistance, leftinnerIndex] = min(distances1);
leftedgPMA63=[leftedge;(leftd)]; % gives the expansion distances in one column
% leftedgPMA6=[leftedge i]; I tried this way as well it did nt work???
% rightedgPMA6=[rightedge i];
% I tried putting
% but still it didnt work