How can I make a scatter plot with different markers ?
조회 수: 110 (최근 30일)
이전 댓글 표시
Hi;
I want to make a scatter plot with different markers for the attached .txt file?
I want to show the three values in one graphic with for example "circle", "rectangular" and "diamond" as a scatter plot.
Could you please help me about Matlab code for this graphic?
Thanks a lot..
댓글 수: 0
채택된 답변
Walter Roberson
2020년 5월 19일
scatter() can only specify one marker shape for each scatter object, so you will need to make multiple calls.
댓글 수: 0
추가 답변 (1개)
Stijn Haenen
2020년 5월 19일
편집: Stijn Haenen
2020년 5월 19일
maybe somthing like this:
symbol_list=['*';'+';'o';'<'];
for i=1:4
scatter(x(:,i),y(:,i),symbol_list(i))
hold on
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!