Plot a line, changing origin
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have 2 vectors containing x and y-coordinates. Now I want to plot these points and connect them to a line. How can I do this without starting from (0,0)? Actually the line always begins at (0,0) although this point is not content of the vectors!
0 comentarios
Respuesta aceptada
Simon
el 16 de Sept. de 2013
Hi!
x = [1 2 3];
y = [2 4 9];
plot(x,y);
This doesn't start at (0,0). If you have problems please post your code.
Más respuestas (0)
Ver también
Categorías
Más información sobre Formatting and Annotation en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!