Matlab не нарисуйте два сюжета на одной фигуре

By default, new plots clear existing plots and reset axes properties, such as 
the title. However, you can use the hold on command to combine multiple plots 
in the same axes. 
coder