matlab - A way of copying a plot and plotting next to existing curve -
if have curve plotted in axis there way of copying curve , plotting next without running function.
i.e. have code plot function -1 0, dont want function correct 0 1, want replicate curve next it.
sorry vague question im @ loss here
using function sin(x) example, this
x_min = -1; x_max = 0; x = x_min:0.1:x_max; y = sin(x); hold on plot(x, y, 'linewidth', 1.2) plot(x + x_max - x_min, y, 'linewidth', 1.2) plot([x_max x_max], [sin(x_min) sin(x_max)], 'k--') axis equal to following

Comments
Post a Comment