How to create a scatter plot with three variables?
7 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a set of data (pressure, temperature, count)->(x,y,z). Is there a way to plot this in 2D with the z plotted in colors based on the values of the counts?
Thanks!
0 个评论
采纳的回答
Bjorn Gustavsson
2020-5-5
you should use scatter, something like this:
psz = 23;
scatter(x,y,psz,z,'filled')
That should give you something to start with. Have a look at the help and documentation for more details.
HTH
2 个评论
Bjorn Gustavsson
2020-5-5
One more thing to keep in mind is the matlab command lookfor - when you cannot find/remember the name of a function you can always search with lookfor:
lookfor scatter
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!