MATLAB: For loops and figure window title

basenamefigurelooptitlewindow

I have several figures. I want the title of the window figure to say the basename of the file belonging to the figure. The figures are in a loop. So the code for looping the figures without overwriting one another is:
figure(i)
but how can I change this title to my basename?

Best Answer

figure('Name',basename{k},'NumberTitle','off')
Related Question