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 Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by