a loop consist on images how to get some specific data from this loop
Show older comments
for i=1:300
s = strcat('C:\Users\shake\OneDrive\Desktop\ab\',int2str(i));
load(s)
pause(0.5)
imshow(cjdata.image,[]),title(int2str(i))
end
from above data set 1:300 we want to get specific data for example a=1:8 b=10:15 c=20:23
so on we want to devide the loop in to specific blocks
Answers (1)
KSSV
on 7 Feb 2022
for i=1:300
s = strcat('C:\Users\shake\OneDrive\Desktop\ab\',int2str(i));
end
% First block
for a = 1:8
load(s{a}) ;
end
% some block
for c = 20:23
load(s{c}) ;
end
1 Comment
Shakeel Khan
on 7 Feb 2022
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!