looping code for ct slice

조회 수: 2 (최근 30일)
mohd akmal masud
mohd akmal masud 2019년 3월 8일
답변: Geoff Hayes 2019년 3월 8일
Dear All,
I have 75 ct slice (the hame file start with ct10, ct 20, ct30...........ct75), how could i write the code for looping?
75 ct slice inside this folder for example ( I:\12. FIZIK NUKLEAR\Jadual Bulanan Kerja PSF 2018\75ct)

채택된 답변

Geoff Hayes
Geoff Hayes 2019년 3월 8일
mohd - perhaps something like this to get the updated ct on each iteration
for k=1:75
tag = sprintf('ct%02d',k);
% do something
end
The above will initialize the tag variable to ct01, ct02, ct03,...,ct75 on each iteration of the loop.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by