help-octave
[Top][All Lists]
Advanced

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

Order and extract from array


From: shivax
Subject: Order and extract from array
Date: Tue, 22 Jan 2019 16:52:50 -0600 (CST)

D=[3 1 2 5 4]

 v=[5 3 1]

i want to extract position n.: 5 , 3 ,1 ( v=[5 3 1]) from D but this must to
be following the order in  D


: 4(position 5 in D is 4), 2(position 3 in D is 2) , 3(position 1 in D is 3)

now I want to keep the original order in D

Ans: 3 2 4   

ok now i'm finish :)


is there someone so kind that helps me to code it?




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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