VMD-L Mailing List
From: Mehdi Bagherpour (mehdi.bpour_at_gmail.com)
Date: Tue Jun 16 2015 - 11:01:18 CDT
- Next message: Daniela Rivas: "Re: Load trajectory file in .sim format"
- Previous message: John Stone: "Re: Load trajectory file in .sim format"
- Next in thread: Axel Kohlmeyer: "Re: minimum value of index numbers"
- Reply: Axel Kohlmeyer: "Re: minimum value of index numbers"
- Reply: Joaquim Rui de Castro Rodrigues: "RE: minimum value of index numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear vmd users,
I want to find minimum value of index of my selected atom atoms
*for {set x 0} {$x <= 334} {incr x} {*
*set sel1 [atomselect top "name P and within 6 of index $x"] *
*set sel2 [$sel1 get index]*
*.*
*.*
*.*
When I write *$sel2 get index *it takes *386 387 388 *
What is command of finding minimum of $sel2, I need because for each loop
we have different index number for $sel2.
I have done with:
*expr min [$sel2 get index]*
but I got this error:
*invalid bareword "min"*
*in expression "min 382 383 384";*
*should be "$min" or "{min}" or "min(...)" or ...*
Thanks
Mahdi
- Next message: Daniela Rivas: "Re: Load trajectory file in .sim format"
- Previous message: John Stone: "Re: Load trajectory file in .sim format"
- Next in thread: Axel Kohlmeyer: "Re: minimum value of index numbers"
- Reply: Axel Kohlmeyer: "Re: minimum value of index numbers"
- Reply: Joaquim Rui de Castro Rodrigues: "RE: minimum value of index numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]