VMD-L Mailing List
From: namd vmd (namd.vmd_at_gmail.com)
Date: Thu Mar 29 2007 - 03:21:45 CDT
- Next message: Olaf Lenz: "Re: assigning variable names using a for loop"
- Previous message: John Stone: "Re: problem creating psf"
- Next in thread: Olaf Lenz: "Re: assigning variable names using a for loop"
- Reply: Olaf Lenz: "Re: assigning variable names using a for loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
I want to assign different variable names for each residue in a protein
using a for loop. Something like:
for {set i 1} {$i < 10} {incr i} {
set prot${i} [atomselect top "protein and resid $i "]
puts $prot${i}
}
But this does not work, and vmd says that the variable $prot is not found.
How to solve this problem ?
- Next message: Olaf Lenz: "Re: assigning variable names using a for loop"
- Previous message: John Stone: "Re: problem creating psf"
- Next in thread: Olaf Lenz: "Re: assigning variable names using a for loop"
- Reply: Olaf Lenz: "Re: assigning variable names using a for loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]