I ger almost the same error as the last poster, under matlab 7.4.0 and linux:
>> p = PDBRead('PDBSilk.txt');
Extracting the information............
??? Subscript indices must either be real positive integers or logicals.
Error in ==> PDBRead at 348
PDB_struct.SEQRES.ResChainDetail(PDB_struct.SEQRES.NoOfResChain).AminoAcids = strcat(PDB_struct.SEQRES.ResChainDetail(PDB_struct.SEQRES.NoOfResChain).AminoAcids,GetAminoAcids(
Possibly its an issue specific to my setup (Kubuntu linux, matlab 7), but when I run the program on the included PDBSilk.txt file, I get an error message:
??? Cell contents indices must be greater than 0.
Error in ==> PDBRead at 348
PDB_struct.SEQRES.ResChainDetail(PDB_struct.SEQRES.NoOfResChain).AminoAcids = strcat(PDB_struct.SEQRES.ResChainDetail(PDB_struct.SEQRES.NoOfResChain).AminoAcids,GetAminoAcids(