[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Multidimensional arrays

**From**: |
Ben Abbott |

**Subject**: |
Re: Multidimensional arrays |

**Date**: |
Tue, 6 Nov 2007 07:04:29 -0500 |

On Nov 6, 2007, at 3:50 AM, asha g wrote:

Does Octave 2.9.12 have multidimensional arrays?
If so, where can I read up something and learn to use
them?
I have data which varies in 3D and was hoping to use
this and then plot 3 D figures.
Tips will be appreciated.]

I'm not clear on your question.

`Multidimensional arrays are easily created in Octave, but are
``generally not needed to produce 3D plots. See the link below.
`

`http://www.gnu.org/software/octave/doc/interpreter/
``Three_002dDimensional-Plotting.html#Three_002dDimensional-Plotting
`
For example, using 1D vectors.
z = (0:200)/100;
x = z.*(2-z).*cos (8*pi*z);
y = z.*(2-z).*sin (8*pi*z);
plot3 (x, y, z)

`Contours are generally produced using 2D input data (see the link
``above).
`
What type of 3 D figures are you looking to produce?
Ben