"Jack " <
jack_ra...@hotmail.com> wrote in message
news:j83q3t$2vi$1...@newscl01ah.mathworks.com...
> Hi guys,
>
> I am trying to create a scatter (bubble) plot that reflects the frequency
> of a set number of points by varying the size of the points.
> For example, the first point would be point 0,0 with size 5, ideally,
> because the engine speed is 0, the torque is 0 and the amount of times
> this point occured is 5.
>
> Is it possible to link the size of the points to the frequency matrix?
> This is what I have so far. But it doesn't work.
http://www.mathworks.com/help/techdoc/ref/scatter.html
"S determines the area of each marker (specified in points^2). S can be a
vector the same length as X and Y or a scalar."
> enginespeed = [0 0 0 0 1600 1600 1600 1600 2000 2000 2000 2000 2600 2600
> 2600 2600];
> torque = [0 50 75 100 0 50 75 100 0 50 75 100 0 50 75 100];
> frequency = [5 0 0 0 1 10 10 25 0 10 10 10 0 0 5 14];
You should scale these frequency values; you're not going to see much
difference between a marker that's 3 points on a side (10 points^2 is about
a 3-by-3 square) and one that's 5 points on a side (25 points^2), since a
point is 1/72 of an inch.
http://www.mathworks.com/help/techdoc/ref/rootobject_props.html#Units
--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com