Moving a function in a graph
Mostra commenti meno recenti
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!
Risposte (2)
the cyclist
il 20 Ago 2013
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
il 21 Ago 2013
0 voti
Categorie
Scopri di più su Graph and Network Algorithms in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!