Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Following position change in different vectors
Replies: 7   Last Post: Mar 22, 2011 5:20 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Lengyel Tamas Posts: 10 Registered: 2/23/11
Following position change in different vectors
Posted: Mar 20, 2011 5:02 AM
 Plain Text Reply

Dear Mathworld Users,

Sorry for asking your help again, I hope I'm not spamming too much.
My problem is the following:

1) I have 2 vectors with equal length. The positions of the first vector
correspond to the second vector. So the first element of v2 is calculated
from the first element of v1, etc.

2) I wish to sort the first vector in ascending magnitude using Sort[v1].
Naturally the positions of v1's elements change.

What I want is the same change of position in v2's positions.

(So e.g. if v1's sixth element moves after Sort to the first position,
I'd like v2's same position element to follow suit)

Thank you for your help in advance.

Tamas

Date Subject Author
3/20/11 Lengyel Tamas
3/21/11 DrMajorBob
3/21/11 Bill Rowe
3/21/11 Peter Pein
3/21/11 István Zachar
3/21/11 Heike Gramberg
3/21/11 Harvey P. Dale
3/22/11 szhorvat@gmail.com

© The Math Forum at NCTM 1994-2018. All Rights Reserved.