Partha - if you are trying to give your figure (composed of several subplots) a title, then consider using the functionsuplabel found in the File Exchange.
Anannotation is good to use here. It is a little easier than thetext command because the position is relative to the figure -- not one of the axes. Here's an example:
subplot(1,2,1), plot(1:10)
subplot(1,2,2), plot(1:10)
annotation('textbox', [0 0.9 1 0.1], ...
'String', 'hello, title', ...
'EdgeColor', 'none', ...
'HorizontalAlignment', 'center')
If this is just a one-off thing, you can also add an annotation interactively. That is describedhere in the documentation.
Best Answer