How to extract pdb data in Matlab

  • Context: MATLAB 
  • Thread starter Thread starter MiloBoots
  • Start date Start date
  • Tags Tags
    Data Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
MiloBoots
Messages
2
Reaction score
0
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
 
Physics news on Phys.org