[Matrix-SIG] QUERY: Array indexing
Konrad Hinsen
hinsen@cnrs-orleans.fr
Thu, 11 Mar 1999 16:26:48 +0100
> I have an index of values, i=[1,2,3], and need to access element
> [1,2,3] of the array, a=array([3,3,3]). How do I do this going through i?
What do you mean by "element [1,2,3]"? If you want *one* element,
this should be three indices correspdonding to three dimensions - but
the array you give is one-dimensional!
--
-------------------------------------------------------------------------------
Konrad Hinsen | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.55.69
Rue Charles Sadron | Fax: +33-2.38.63.15.17
45071 Orleans Cedex 2 | Deutsch/Esperanto/English/
France | Nederlands/Francais
-------------------------------------------------------------------------------