Borrar filtros
Borrar filtros

plotting and joining scatter plots

2 visualizaciones (últimos 30 días)
MOLE
MOLE el 1 de Feb. de 2020
Respondida: Walter Roberson el 1 de Feb. de 2020
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 1 de Feb. de 2020
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.

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by