필터 지우기
필터 지우기

How to create a scatter plot with three variables?

조회 수: 7 (최근 30일)
Astro
Astro 2020년 5월 5일
댓글: Bjorn Gustavsson 2020년 5월 5일
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!

채택된 답변

Bjorn Gustavsson
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
Astro
Astro 2020년 5월 5일
Thank you! I think this is what I'm looking for.
Bjorn Gustavsson
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 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