Do you mean something like this? If not, please give an example of what you want.
x=0:0.01:5;
plot(x,sin(x),'r')
hold on
plot(x+5,cos(x+5),'b')
xticks(0:10)
grid on
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!