Thread Subject: 4D data plotting

Subject: 4D data plotting

From: Sachitha Obeysekara

Date: 16 Aug, 2007 16:17:25

Message: 1 of 3

Hi,
I have 4 vectors x,y,z and i.
x,y,z are coordinate values
i is a representation of intensity

eg:
x = -0.0084, -0.0094,...
y = 0.004, 0.005,...
z = 1, 2,...
i = 0.005, 0.001,...
...and so on

how can i plot this data onto a 3d graph so that the
intensity is represented by a color? (similar to how pcolor
() works but in 3D???)

is there a better way to visualise a set such as this?

any ideas?

manys thanks

Subject: 4D data plotting

From: Gautam Vallabha

Date: 16 Aug, 2007 17:11:59

Message: 2 of 3

"Sachitha Obeysekara" <sachitha.2.obeysekara@gsk.com> wrote in message
news:fa1tal$go5$1@fred.mathworks.com...
> Hi,
> I have 4 vectors x,y,z and i.
> x,y,z are coordinate values
> i is a representation of intensity
[snip]
> how can i plot this data onto a 3d graph so that the
> intensity is represented by a color? (similar to how pcolor
> () works but in 3D???)
> is there a better way to visualise a set such as this?

see SCATTER3

----------------------
% generate some data
x = rand(1,100);
y = rand(1,100);
z = rand(1,100);
i = rand(1,100)*200;

% specify the indexed color for each point
icolor = ceil((i/max(i))*256);

figure;
scatter3(x,y,z,i,icolor);
figure;
scatter3(x,y,z,i,icolor,'filled');
----------------------

--

Gautam Vallabha
The MathWorks
Email: Gautam.Vallabha@mathworks.com



Subject: 4D data plotting

From: Thomas Clark

Date: 22 Aug, 2007 16:11:35

Message: 3 of 3

Alternatively, you can visualise data using isosurfaces of
constand intensity; check out the isosurface function:

patch(isosurface(X,Y,Z,V,isovalue))

Tags for this Thread

Everyone's Tags:

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
4d Elior Shenhav 19 Aug, 2007 02:11:51
data representation Sachitha Obeysekara 16 Aug, 2007 12:20:05
3d Sachitha Obeysekara 16 Aug, 2007 12:20:05
visualization Sachitha Obeysekara 16 Aug, 2007 12:20:05
4d Sachitha Obeysekara 16 Aug, 2007 12:20:05
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com