Plot a line, changing origin

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!

 채택된 답변

Simon
Simon 2013년 9월 16일

0 개 추천

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.

댓글 수: 1

Adrian
Adrian 2013년 9월 18일
You are right, I did an other (stupid) mistake!
Thank You

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

제품

질문:

2013년 9월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by