VMD-L Mailing List
From: Thomas C. Bishop (bishop_at_tulane.edu)
Date: Fri May 02 2008 - 10:28:30 CDT
- Next message: John Stone: "Re: a common list problem"
- Previous message: Bala subramanian: "Re: viewing pca output"
- Next in thread: John Stone: "Re: a common list problem"
- Reply: John Stone: "Re: a common list problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear VMD,
I've run into this before and have now forgotten how to solve it
"properly".
The following snippet does not work b/c the atomcoor lists as written
are not what vecsub expects....
what's most elegant way to solve this?
thanks
Tom
************ snippet ********************
set atom1 [atomselect top { index 10 } ]
set atom2 [atomselect top { index 15 } ]
set atom1coor [$atom1 get {x y z } ]
set atom2coor [$atom2 get {x y z } ]
set diff [vecsub $atom1coor $atom2coor ]
-- *********************** * Thomas C. Bishop * *Office: 504-862-3370 * *CCS: 504-862-8391 * *Fax: 504-862-8392 * ***********************
- Next message: John Stone: "Re: a common list problem"
- Previous message: Bala subramanian: "Re: viewing pca output"
- Next in thread: John Stone: "Re: a common list problem"
- Reply: John Stone: "Re: a common list problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]