필터 지우기
필터 지우기

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 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