You can add to the existing title of the plot generated with bode()
by using the title()
function. Here's an example:
main.m206 chars8 lines
This code gets the current title of the plot using get(gca,'Title')
, which returns the handle to the title text object. It then appends some text to the title string and sets the title to the new string using title(new_title)
.
Alternatively, you can also use the suptitle()
function from the Matlab File Exchange to add a centered title above the entire figure (including all subplots) rather than the individual subplot title.
main.m110 chars5 lines
gistlibby LogSnag