From: John on
I have a seemingly simple question:
I need to create a 3d cube from nxnxn data points such as:
x1 = [2, 3, 4, 5, 6, 7, 8];
x2 = [36, 42, 48, 54, 62, 66, 72];
x3 = [0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5];

Currently I can only get a Linear sheet as the elements are not being couple element by element to create the whole cube.

To visualize what i am trying to actually do: x1, x2, and x2 represent different design parameters of a rocket. I will then apply color in the cube showing the different altitudes reached so I can identify the best possible design combinations. Perhaps even eliminating certain colors so only those which are on the higher end show. (I already have this altitude data from a simulator). Thanks for any help
From: Steven Lord on

"John " <tarpoon7(a)gmail.com> wrote in message
news:hp0h8e$rch$1(a)fred.mathworks.com...
>I have a seemingly simple question:
> I need to create a 3d cube from nxnxn data points such as:
> x1 = [2, 3, 4, 5, 6, 7, 8];
> x2 = [36, 42, 48, 54, 62, 66, 72];
> x3 = [0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5];
>
> Currently I can only get a Linear sheet as the elements are not being
> couple element by element to create the whole cube.
>
> To visualize what i am trying to actually do: x1, x2, and x2 represent
> different design parameters of a rocket. I will then apply color in the
> cube showing the different altitudes reached so I can identify the best
> possible design combinations. Perhaps even eliminating certain colors so
> only those which are on the higher end show. (I already have this altitude
> data from a simulator). Thanks for any help

If you have a function f(x1, x2, x3) that takes on triplets of values from
inside your cube, you can use NDGRID to generate a grid of coordinates at
which you can evaluate your function, then use something like ISOSURFACE to
plot, well, isosurfaces -- the 3D equivalent of contour lines -- using the
evaluated values.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ