plotting and joining scatter plots

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

产品


版本

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by