% code
for k = t0:56 [epi,xi,yi] = roipoly(echo(:,:,k)); %manually click along epicardial border;
[endo,xi2,yi2] = roipoly(echo(:,:,k)); %manually click along endocardial border;
end figure; plot(xi,yi,'b'); hold on plot(xi,yi,'b+'); plot(xi2,yi2,'r'); plot(xi2,yi2,'ro');
MATLAB: How to save for loop data from series of images? I am creating two polygons along the borders in a set of images. i want to save the polygon data for every loop. Currently it is overwriting and only saving the last loops data.
for loopimage processingsave
Best Answer