Scatter plot: dots in two different colors

1 Ansicht (letzte 30 Tage)
CARLOTTA DENTICO
CARLOTTA DENTICO am 19 Jul. 2021
Beantwortet: KSSV am 19 Jul. 2021
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 Kommentar
Smitesh Patil
Smitesh Patil am 19 Jul. 2021
pts1 and ptcmems700 together define all the points, x and y coordinates repectively. What do you mean by dots belonging to pts1 and ptcmems700?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

KSSV
KSSV am 19 Jul. 2021
scatter(pts1, ptcmems700,[],ptcmems700)
xlabel('S1 θ (°C)');
ylabel('cmems θ (°C)');

Community Treasure Hunt

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

Start Hunting!

Translated by