Marker color changes with temperature

I am plotting the time vs temperature in plot mode, but I want that the markers change the color with the temperature, how can I do? Is it possible? :
figure()
plot(temp, time,'o');

回答 (1 件)

Steven Lord
Steven Lord 2017 年 6 月 14 日

0 投票

Use scatter instead of plot.

カテゴリ

質問済み:

2017 年 6 月 14 日

回答済み:

2017 年 6 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by