Thursday 10 September 2015

How to add a name to Matlab figure's title bar?

1. How to add a name to the Matlab figure's title bar? For example, Figure 1: Time of the year vs. Temperature.

figNum = 1;
figure(figNum)
set(figNum, 'Name', 'Time of the year vs. Temperature');


Output for this code is shown below: