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!