Translate a plot across its axes
显示 更早的评论
Hi guys,
I'm writing a program which draws the hysteresis loops on a stress/strain plot. In order to do this, I need to be able to move successive plots so that they begin where the last plot ends.

As you can see in the picture, I want to translate the steep-looking curve across the figure so that its head matches with the top of the shallower curve.
Thanks in advance,
Louis Vallance
1 个评论
Azzi Abdelmalek
2012-11-30
Can you resize your image, it's too big.
采纳的回答
更多回答(2 个)
dpb
2012-11-30
0 个投票
If values are (x,y1) and (x,y2) then
plot(x,y1,[x+x(end)-x(1)],[y2+y1(end)-y1(1)])
--
类别
在 帮助中心 和 File Exchange 中查找有关 Fit Postprocessing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!