Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
coloured dots

Subject: coloured dots

From: Tim Franke

Date: 1 Mar, 2014 18:44:46

Message: 1 of 2

Hi,

A solution of a simulation looks like this:

M=
X1, Y1, Z1
X2, Y2, Z2
.
.
.

I visualize the result with plot(M(:,1), M(:,2), '.').
Now I would like to add the information that Z contains, by coloring
the points corresponding to the magnitude of Z. The colour range
should be arranged like a spectrum ranging from red (high Z) to blue
(low Z) with yellow, green etc inbetween. The colour key should be
visible to correlate the colours with vlaues of Z.

Is this possible in Matlab?

Best regards,
Tim

Subject: coloured dots

From: dpb

Date: 1 Mar, 2014 20:52:25

Message: 2 of 2

On 3/1/2014 12:44 PM, Tim Franke wrote:
...
> M=
> X1, Y1, Z1
> X2, Y2, Z2
> .
...

> I visualize the result with plot(M(:,1), M(:,2), '.').
> Now I would like to add the information that Z contains, by coloring
> the points corresponding to the magnitude of Z. ...
...
> Is this possible in Matlab?
...

doc scatter

--

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us