Scatter plot: dots in two different colors

조회 수: 1 (최근 30일)
CARLOTTA DENTICO
CARLOTTA DENTICO 2021년 7월 19일
답변: KSSV 2021년 7월 19일
Hi,
Very simple issue but I still don't know how to solve it..
I am trying to produce a scatter plot of two arrays x, y using
scatter(pts1, ptcmems700)
xlabel('S1 θ (°C)');
ylabel('cmems θ (°C)');
How can I have dots belonging to pts1 being all red and dots beloging to ptcmems700 beign all black?
Thank you very much!
  댓글 수: 1
Smitesh Patil
Smitesh Patil 2021년 7월 19일
pts1 and ptcmems700 together define all the points, x and y coordinates repectively. What do you mean by dots belonging to pts1 and ptcmems700?

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2021년 7월 19일
scatter(pts1, ptcmems700,[],ptcmems700)
xlabel('S1 θ (°C)');
ylabel('cmems θ (°C)');

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by