Naming figures based on the current value in a for loop
Show older comments
I am iterating through a for loop, and I wanted to label the figures based of the current value. I used figure(k) and that worked fine but I wanted to include a window title to make it look better but I cannot find how to make it work in this format (below)! (It's for a uni assignment so I want it to look better!)
figure('Name','Question 3 Part 4','NumberTitle','on')
This is the format that worked but looked to plain: figure(k)
Answers (1)
It is not possible to combine these two syntaxes into one figure call:
fgh = figure(k);
set(fgh, 'Name','Question 3 Part 4', 'NumberTitle','on')
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!