help-octave
[Top][All Lists]
Advanced

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

Re: How to get a matrix values' indices?


From: Geraint Paul Bevan
Subject: Re: How to get a matrix values' indices?
Date: Tue, 28 Sep 2004 19:13:14 +0100
User-agent: Mozilla Thunderbird 0.7.1 (X11/20040715)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mikolaj Karolczak wrote:
| Hello,
|
| Suppose we have a matrix of integer values. Is there any function to
get quickly
| matrices of each value's indices?
|

Have a look at the find command:

[i,j] = find (m == 1)
etc.

- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkFZqboACgkQcXV3N50QmNNjhACeMfhESW7k3PPuki2WASzPeyVc
D9EAnjAwQmWZ28iiaq2SaJn7Q+QEnA1r
=zxg8
-----END PGP SIGNATURE-----



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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