フィルターのクリア

How to plot lines between all these points

1 回表示 (過去 30 日間)
S. David
S. David 2011 年 4 月 14 日
Hi,
I have a matrix V, which is a 5-by-2 matrix, where each row represents a point in the xy-plain. How can I connect these points together in MATLAB, please?
Thanks in advance

採用された回答

Matt Fig
Matt Fig 2011 年 4 月 15 日
Does this do what you need?
V(6,:) = V(1,:); % To connect at the end. Assumes size(V,1) = 5;
line(V(:,1),V(:,2))
  4 件のコメント
Matt Fig
Matt Fig 2011 年 4 月 15 日
V(6,:) = V(1,:);
line(V(:,1),V(:,2),V(:,3))
S. David
S. David 2011 年 4 月 15 日
This did not work, I just got two crossed lines in 2D. Why?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by