Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Plot 3D lookup table points' topicStudent Support Forum > General > Archives > "Plot 3D lookup table points"

Next Comment >Help | Reply To Topic
Author Comment/Response
Ari Sharon
01/31/10 2:24pm

Hi,

I have 3D lookup table which is defined as:
index1 = {0.0040, 0.0472, 0.3952}
index2 = {0.0040, 0.0472, 0.3952}
values = {{0.0371, 0.0433, 0.0641}, \
{0.0309, 0.0371, 0.0560}, \
{0.0472, 0.0534, 0.0644}}

where index1 are the row values, index2 are the column values, and values are values... :-)

I wish to plot these 3D point. For that I need to automatically create tuples like:
{{0.0040,0.0040,0.0371}
{0.0472,0.0040,0.0309},
....}

Of course, I wish to do this automatically and in generic form.

I have come so far to this point:
m=Tuples[{index1, index2}]
v= Flatten[values]

And now, what I need to do is add v as column vector to m matrix.

1) How do I complete the last required step in my procedure ?

2) Is there a better option to create tuples from such lookup table?

Thanks,

Ari


URL: ,

Subject (listing for 'Plot 3D lookup table points')
Author Date Posted
Plot 3D lookup table points Ari Sharon 01/31/10 2:24pm
Re: Plot 3D lookup table points TomD 02/05/10 09:13am
Re: Plot 3D lookup table points TomD 02/05/10 10:32am
Re: Re: Plot 3D lookup table points Ari Sharon 02/07/10 08:32am
Next Comment >Help | Reply To Topic