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

    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.

  2. jcsd
  3. Nov 30, 2016 #2


    Staff: Mentor

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted

Similar Threads for extract data Matlab
I Tail in data of Duane-Hunt limit experiment