How to use pcolor with three columns of data?

조회 수: 3 (최근 30일)
Audra Kiesling
Audra Kiesling 2013년 1월 15일
I need guidance on how to use the pcolor function in Matlab. I have three columns of data that I need to incorporate. The first column is a count of particles, the second column the diameter of the particles and the third column, the velocity of the particles. I am trying to plot diameter on the x-axis, velocity on the y-axis and then have pcolor use the count values for each corresponding x,y value. The problem I run in to, is that the count values are not a matrix, as they should be to use pcolor(x,y,C) where x and y can be vectors but C must be a matrix. I know it is probably really simple, but I am a matlab novice and I have hit a roadblock.
Thanks, Audra

답변 (1개)

Image Analyst
Image Analyst 2013년 1월 15일
pcolor() is not the right function. Use scatter() instead. Make sure you pass in sizes and colors for your markers if you want different colors that depend on the count (your first column).

카테고리

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