looping code for ct slice

1 visualización (últimos 30 días)
mohd akmal masud
mohd akmal masud el 8 de Mzo. de 2019
Respondida: Geoff Hayes el 8 de Mzo. de 2019
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)

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 8 de Mzo. de 2019
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.

Más respuestas (0)

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by