フィルターのクリア

plotting and joining scatter plots

2 ビュー (過去 30 日間)
MOLE
MOLE 2020 年 2 月 1 日
回答済み: Walter Roberson 2020 年 2 月 1 日
i have a vector x and y. i need to plot these points as solid circles and join them in order of indices by a line between each adjacent indices points. i also need to select the line size, line color and point color, how do i achieve this?

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 2 月 1 日
Just call scatter() and then plot() passing in the same coordinates.
If it was not necessary that the point color be different from the line color then it could all be done with just a call to plot() with linestyle '-o' and appropriate options. However plot() does not permit the marker color to be different than the line color.

カテゴリ

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

タグ

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by