Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

I How to extract pdb data in Matlab

  1. Nov 30, 2016 #1
    Hey

    I want to be able to extract the coordinates of different elements in a PDB data file. I have been able to extract the coordinates for all the atoms in 3 arrays in the x, y, z directions. However, I would like to have the x, y, z coordinates for each element separate. So an array for the positions of oxygen, an array for nitrogen etc.

    For example, I use the line:Z=[gflstruct.Model.Atom.Z] to get the Z axis coordinates and similarly for X and Y.

    I am struggling to come up with a script to run which filters through the pdb file and outputs the different arrays of coordinates for each element.

    Thankyou
     
  2. jcsd
  3. Nov 30, 2016 #2

    jedishrfu

    Staff: Mentor

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted