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!