How to update the image title automatically with the corresponding file name?
Show older comments
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)]);
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!