help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matrix index, Please e-mail back.


From: Paul Kienzle
Subject: Re: Matrix index, Please e-mail back.
Date: Tue, 5 Dec 2006 21:16:03 -0500


On Dec 5, 2006, at 6:39 PM, Jordi Gutierrez Hermoso wrote:

There are cute little indexing hacks that can be accomplished if you
remember that Octave stores matrices in Fortran column-major order. In
other words, a matrix can be indexed by a single index as if it were
one long vector.

The functions sub2ind and ind2sub hide the details, letting you
access an array element by element rather than by slices.

- Paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]