Thread Subject:
Plotting 4D data

Subject: Plotting 4D data

From: James

Date: 28 Jun, 2012 18:21:08

Message: 1 of 1

Hello,
I have a plotting question. I know similar questions have been asked before, but somehow I cannot get any of those solutions to work.

I have a 3D array, of dimension m x n x o, with each element in the array containing an integer i (this is a voxel representation of an image). I would like to make a 3D scatter plot where the axes are 1:m, 1:n, and 1:o, and each point is sized according to the value of i. I have tried scatter3, but I keep getting an error "X, Y and Z must be vectors of the same length." I tried making new axes using [X,Y,Z]=meshgrid(1:m, 1:n, 1:o), but I got the same error. Does anyone have any suggestions? Thanks very much!

Tags for this Thread

Everyone's Tags:

plot, 3d

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
plot James 28 Jun, 2012 14:24:11
3d James 28 Jun, 2012 14:24:11
rssFeed for this Thread

Contact us