| MATLAB Central > MATLAB Newsreader > How to plot a 3d color graph with a cloud of data? |
|
|
|
Subject: How to plot a 3d color graph with a cloud of data? From: sharmin shamsalsadati Date: 9 Nov, 2009 17:14:04 Message: 1 of 8 |
|
I have 4 vectors , three of them are each points coordinates(x,y,z) with 200,000 element each. The fourth vector (c) is the same size of other vectors. I want to have a 3d plot which x(i),y(i),z(i) specifies each point's location and c(i) would be the color correspond to each point. I tried scatter3 but it doesn't give me a good plot since my data locations are too close to each other inside the volume and also I want to have interpolation between the data. So, it would be a colorful cube which color in each point shows the related magnitude in "c" vector. I also tried "slice" command to have color faces in the cube but it doesn't plot it ,because my "c" is not a 3d matrix and is not specified as a function of coordinates and my coordinates are not specified by meshgrid and don’t have a specific trend, couldn’t use the patch, either (lots of data with no pattern). Could you |
|
Subject: How to plot a 3d color graph with a cloud of data? From: Damian Sheehy Date: 9 Nov, 2009 18:46:09 Message: 2 of 8 |
|
Hi Sharmin, |
|
Subject: How to plot a 3d color graph with a cloud of data? From: sharmin Date: 9 Nov, 2009 19:25:05 Message: 3 of 8 |
|
"Damian Sheehy" <Damian.Sheehy@mathworks.com> wrote in message <hd9o1j$1cf$1@fred.mathworks.com>... |
|
Subject: How to plot a 3d color graph with a cloud of data? From: sharmin Date: 9 Nov, 2009 19:27:02 Message: 4 of 8 |
|
Thank you for your response, but my problem is that my "c" value(or "v" in your example) is not a function of coordinates.It is a vector (200,000 by 1) same size of x,y,z . For instance, c(1) shows the magnitude(intensity) at (x(1) ,y(1),z(1)) and there are not dependent on each other. |
|
Subject: How to plot a 3d color graph with a cloud of data? From: Damian Sheehy Date: 9 Nov, 2009 19:36:49 Message: 5 of 8 |
|
Hi Sharmin, |
|
Subject: How to plot a 3d color graph with a cloud of data? From: sharmin shamsalsadati Date: 12 Nov, 2009 15:48:01 Message: 6 of 8 |
|
I found a way to sort my data and consider the volume as a function of x,y,z. |
|
Subject: How to plot a 3d color graph with a cloud of data? From: Damian Sheehy Date: 12 Nov, 2009 18:19:57 Message: 7 of 8 |
|
"sharmin shamsalsadati" <sharmin_shamsalsadati@yahoo.com> wrote in message |
|
Subject: How to plot a 3d color graph with a cloud of data? From: Luigi Giaccari Date: 17 Nov, 2009 20:28:03 Message: 8 of 8 |
|
"sharmin shamsalsadati" <sharmin_shamsalsadati@yahoo.com> wrote in message <hd9iks$knj$1@fred.mathworks.com>... |
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 |
| color | sharmin shamsalsadati | 9 Nov, 2009 12:19:02 |
| cube | sharmin shamsalsadati | 9 Nov, 2009 12:19:02 |
| scatter data | sharmin shamsalsadati | 9 Nov, 2009 12:19:02 |
| 3d graph | sharmin shamsalsadati | 9 Nov, 2009 12:19:02 |
Contact us at files@mathworks.com
