Why is boundary showing me an empty array?

1 回表示 (過去 30 日間)
Christian_T
Christian_T 2019 年 12 月 11 日
コメント済み: Adam 2019 年 12 月 11 日
With the following code Matlab ejects me k = [] empty, what could be the reason?
x = [0;0;0;0,;0,;0];
y = [0;6;7;8;9;10];
k = boundary(x,y);
x2 = x(k);
y2 = y(k);
figure
hold on
scatter(x2,y2)
  3 件のコメント
Christian_T
Christian_T 2019 年 12 月 11 日
Thanks! is there another way to display the points on the line?
Adam
Adam 2019 年 12 月 11 日
Just plot them:
plot( x, y )

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by