Try this demo:
x1 = 0:25;
y1 = x1 .^4;
x2 = 0:50;
y2 = 40000 * x2 .^ 0.3;
plot(x1, y1, 'r-', 'LineWidth', 2);
hold on;
grid on;
plot(x2, y2, 'g-', 'LineWidth', 2);
y3 = y1 - y1(end )+ y2(end);
x3 = x1 - x1(end) + x2(end);
plot(x3, y3, 'b-', 'LineWidth', 2);
legend('Curve 1', 'Curve 2', 'Shifted Curve 2');
Best Answer