MATLAB: How to Enclose a Figure Title in a Box

boxed figure titleMATLAB

I'm interested to learn how to place a figure title in a box using title and sgtitle commands.

Best Answer

hT=title('This is a title','EdgeColor','k');