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:
plot xyz data

Subject: plot xyz data

From: arun

Date: 30 Jan, 2010 19:29:58

Message: 1 of 5

Hi,

I have a file with bunch of values in this format,

x y z value
0 0 0 2.5
...
...
...
10 10 10 -1.5

1) How can I plot this as a 3d Plot?
2) My data is around 1.5-2.5 GB. I think Matlab duplicates the data
while plotting which might mean that it will have to have around 3-5
GB in memory... which I don't have. My total system memory is 4GB. If
this is indeed the case, how can I plot efficiently?

thank you very much.

Subject: plot xyz data

From: arun

Date: 31 Jan, 2010 00:16:00

Message: 2 of 5

On Jan 30, 8:29 pm, arun <aragorn1...@gmail.com> wrote:
> Hi,
>
> I have a file with bunch of values in this format,
>
> x           y            z           value
> 0           0           0              2.5
> ...
> ...
> ...
> 10        10         10            -1.5
>
> 1) How can I plot this as a 3d Plot?
> 2) My data is around 1.5-2.5 GB. I think Matlab duplicates the data
> while plotting which might mean that it will have to have around 3-5
> GB in memory... which I don't have. My total system memory is 4GB. If
> this is indeed the case, how can I plot efficiently?
>
> thank you very much.

does anyone know how to solve this?

thank you.

Subject: plot xyz data

From: Heinrich Dover

Date: 31 Jan, 2010 12:18:13

Message: 3 of 5

On Sat, 30 Jan 2010 16:16:00 -0800 (PST), arun <aragorn168b@gmail.com>
wrote:

>On Jan 30, 8:29 pm, arun <aragorn1...@gmail.com> wrote:
>> Hi,
>>
>> I have a file with bunch of values in this format,
>>
>> x           y            z           value
>> 0           0           0              2.5
>> ...
>> ...
>> ...
>> 10        10         10            -1.5
>>
>> 1) How can I plot this as a 3d Plot?

plot3(x,y,z)


>> 2) My data is around 1.5-2.5 GB. I think Matlab duplicates the data
>> while plotting which might mean that it will have to have around 3-5
>> GB in memory... which I don't have. My total system memory is 4GB. If
>> this is indeed the case, how can I plot efficiently?

If you have such amount of data (which is a rather large number of
points), and a relatively small resolution compared to the number of
points, then it is obvious that many points will actually not "make a
difference" in plotting.
So, I'd start with taking one in every 10 points and plotting just
them.

-- H

Subject: plot xyz data

From: arun

Date: 31 Jan, 2010 12:36:05

Message: 4 of 5

On Jan 31, 1:18 pm, Heinrich Dover <hdo...@invalid.com> wrote:
> On Sat, 30 Jan 2010 16:16:00 -0800 (PST), arun <aragorn1...@gmail.com>
> wrote:
>
> >On Jan 30, 8:29 pm, arun <aragorn1...@gmail.com> wrote:
> >> Hi,
>
> >> I have a file with bunch of values in this format,
>
> >> x y z value
> >> 0 0 0 2.5
> >> ...
> >> ...
> >> ...
> >> 10 10 10 -1.5
>
> >> 1) How can I plot this as a 3d Plot?
>
> plot3(x,y,z)
>
> >> 2) My data is around 1.5-2.5 GB. I think Matlab duplicates the data
> >> while plotting which might mean that it will have to have around 3-5
> >> GB in memory... which I don't have. My total system memory is 4GB. If
> >> this is indeed the case, how can I plot efficiently?
>
> If you have such amount of data (which is a rather large number of
> points), and a relatively small resolution compared to the number of
> points, then it is obvious that many points will actually not "make a
> difference" in plotting.
> So, I'd start with taking one in every 10 points and plotting just
> them.
>
> -- H

Hi Heinrich,

plot3(x,y,z) can not accomplish this task because, I need to plot the
value given by "value" for each location (x,y,z). In other words, my
function is f(x,y,z) = value.
when f(x) = x, we have a 2D plot, when f(x,y) = xy, we get a a 3D
plot, which means its relatively difficult to visualize a f(x,y,z) =
xyz (for example).
I got some idea from Doug's volume visualization (mathworks blog) to
use "isosurface" but still I have some issues... Anybody have tried
this visualization before?

Subject: plot xyz data

From: Heinrich Dover

Date: 31 Jan, 2010 23:47:26

Message: 5 of 5

On Sun, 31 Jan 2010 04:36:05 -0800 (PST), arun <aragorn168b@gmail.com>
wrote:

>Hi Heinrich,
>
>plot3(x,y,z) can not accomplish this task because, I need to plot the
>value given by "value" for each location (x,y,z). In other words, my
>function is f(x,y,z) = value.

Yeah, sorry about that. Really don't know what I was thinking while
looking at your data.

>when f(x) = x, we have a 2D plot, when f(x,y) = xy, we get a a 3D
>plot, which means its relatively difficult to visualize a f(x,y,z) =
>xyz (for example).
>I got some idea from Doug's volume visualization (mathworks blog) to
>use "isosurface" but still I have some issues... Anybody have tried
>this visualization before?

I've done some vizualizations of such sort (coordinates, pressure),
not in matlab, but in tecplot.
Unfortunatelly, if I recall correctly, I wasn't very happy with the
result ("hard" to look at it), so I just went forward with simpler
views.

-- H

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