Plotting 3D plot with 3 variables

2 ビュー (過去 30 日間)
jgillis16
jgillis16 2016 年 2 月 19 日
コメント済み: Star Strider 2016 年 2 月 19 日
I have three variables (let's call them x, y, and z), and x and y represent coordinates while z is a value that correlates to the 'strength' of a single point. I wanted to plot a 3D graph where every single point is plotted according to it's respective x and y value, while have a color scheme that shows which point possesses the greatest 'z' value (sort of like a heat map). Is it possible to do this?

回答 (1 件)

Star Strider
Star Strider 2016 年 2 月 19 日
Not certain what you want to do. I would experiment with the scatter3 function.
  2 件のコメント
jgillis16
jgillis16 2016 年 2 月 19 日
編集済み: jgillis16 2016 年 2 月 19 日
Hey Star. It was actually something along the lines of a question I asked last year that you helped solve: http://www.mathworks.com/matlabcentral/answers/225498-another-question-has-come-up-about-hist3. But, instead of having the Z axis concentrate on the cumulative count of points in a bin, I want to do this as a scatter3 like you initially suggested but with the z variable not acting as an axis but follows a colormap value, where increasing values of z make the points closer to red, etc.
Hopefully that helps somewhat...
Star Strider
Star Strider 2016 年 2 月 19 日
Look through the scatter3 documentation. You can change the sizes and colours of the markers as you wish.

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by