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

enter image description here


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -