| 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: , |
|