how to add title to plot in matlab code example Example: matlab title figure figure(1); plot(x,y); title('myTitle');