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:
Plotting a 4D surface or image

Subject: Plotting a 4D surface or image

From: Edward King

Date: 21 Jan, 2013 04:37:08

Message: 1 of 2

I have X,Y,Z data arrays with an intensity to match each point. I am trying to form an 3D/4D image; however, the result is not correct. When I plot the point on a scatter3 graph with color it displays properly, but the plot does not connect the data between the points to form a surface. What do I need to do to my X,Y,Z data to put it in the correct form for a surface plot?

Subject: Plotting a 4D surface or image

From: Oliver Woodford

Date: 21 Jan, 2013 15:54:08

Message: 2 of 2

"Edward King" wrote:
> I have X,Y,Z data arrays with an intensity to match each point. I am trying to form an 3D/4D image; however, the result is not correct. When I plot the point on a scatter3 graph with color it displays properly, but the plot does not connect the data between the points to form a surface. What do I need to do to my X,Y,Z data to put it in the correct form for a surface plot?

You can plot either volumetric or surface data. To plot a surface you need to specify a triangular mesh of vertices and edges using patch. To plot a volume you first need to compute the volume, then render it using something like vol3d on the file exchange.

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