How to update the image title automatically with the corresponding file name?
Afficher commentaires plus anciens
I have a file for eg: patient 101232-1, which is used to create an image and I have 100 files with tags: 101232\position-%d. How can I update the file name on the image title without inputting the patient number twice, I.e in dlm read line and image title line everytime i run the code. (please see the code below).
nfiles = input('Number of tissue files available: ');
for j = 1:nfiles
*DataC = dlmread(sprintf('%s%d%s','\\homes\Dec-30Days-2013\30-days-SI\128765(40db)\position-',j,'.txt'));*
*imageTitle=sprintf('Colour-128765-%d',j);*
Z=(Imagedata(Y,X));
figure('name',imageTitle,'numbertitle','off')
imagesc(SS*X,Depth,Z);
title(['Amplitude max = ' num2str(amp)]);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!