num2str gives error as 'from struct to double conversion is not possible'
3 views (last 30 days)
Hello everyone. I have a number of data files(pdbs) named as 1.pdb 2.pdb 3.pdb etc.. so I want to read all of them in a loop. Can someone explain why this does not work?
pdb(i,1) = pdbread([int2str(i) '.pdb']);
it says 'Conversion to double from struct is not possible.'