Marker color changes with temperature

4 次查看(过去 30 天)
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
Use scatter instead of plot.

类别

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