フィルターのクリア

Plot a line, changing origin

3 ビュー (過去 30 日間)
Adrian
Adrian 2013 年 9 月 16 日
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 日
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 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by