Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
Samit
Posts:
59
Registered:
12/6/08
|
|
how to 'reindexing' an array
Posted:
Oct 4, 2012 10:28 AM
|
|
Hi, I have an array A = [2 5 2 3 1 7 6 3 2 5]. It has 10 elements. I have another index set I=[9 5 4 1 2 7 6 8 10 3]. I want to assign I as index set of A, i.e. if I name the new array as newA, then newA(9)=2, newA(5)=5, ...,etc.
how can I do that?
thanks, hato
|
|
Date
|
Subject
|
Author
|
10/4/12
|
|
Samit
|
10/4/12
|
|
dpb
|
|
|