Making all the plots to start from the same point.
Mostrar comentarios más antiguos
I have four plots on a single graph. Each of those plots start from different points on the y axis. What do I do if I want all of them to start from a specified point so that I can see the pattern of my plots. I know I should add/subtract values from my y axis data so that they all start at the same point. But how do I do it?
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 26 de Sept. de 2011
Let Y0 be the Y value that you want them all to start at. Then,
plot(x,y1-y1(1)+Y0,'r', x,y2-y2(1)+Y0,'g', x,y3-y3(1)+Y0,'b', x,y4-y4(1)+Y0,'c')
Categorías
Más información sobre Annotations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!