Is this possible to store digits from particular format which has been used to name binary images in excel sheet?
1 次查看(过去 30 天)
显示 更早的评论
I have 1000 binary images in a folder. A particular name pattern has been assigned for each of the images like P1_G1_1,P1_G1_2, P1_G1_3 and so on upto P1_G1_10 then starting from P1_G2_1, P1_G2_2,P1_G2_3 ........upto P1_G2_10. In this way the name sequence ends with P10_G10_10. How to store only no concatenated with G letter using loop. Later I have to store all these to an excel sheet. Please help me in doing this.
0 个评论
采纳的回答
Ameer Hamza
2018-5-8
You can generate all the names using following loop
names = cell(1000, 1);
count = 1;
for ii = 1:10
for jj = 1:10
for kk = 1:10
names{count} = ['P' num2str(ii) '_G' num2str(jj) '_' num2str(kk)];
count = count+1;
end
end
end
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!