Moving a function in a graph

Hi!
I want to know if its possible move a function in a graph without moving the X axis.
I have two functions in a graph and I need to move one of them, but the X axis should not move.
Thank you!

답변 (2개)

the cyclist
the cyclist 2013년 8월 20일

0 개 추천

What do you mean by "move a function in a graph"?
Here, I have "moved" the blue function by offsetting the x value. Is that what you mean? If not, please add more description to your question. It is pretty vague. Remember, we only know the information about your problem that you tell us.
x = 1:10;
y = 3:12;
offset = 6;
figure
plot(x,y,x+offset,y)
JaviOBe
JaviOBe 2013년 8월 21일

0 개 추천

Sorry, I mean that if its possible to move manually a function into a graph, grabbing it with the cursor, for example.
I want to do it because I don't know the exactly offset that I have, and is easier if I do manually.
Thank you

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

질문:

2013년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by