|
You are passing a -cell- with one string to getpdb, it accepts strings, so you need to pull-out each string with
str = data{i}
getpdb(str)
or just
getpdb(data{1})
HTH
Lucio
"Damian " <huckelbeery@gmail.com> wrote in message <hdh3s9$9kl$1@fred.mathworks.com>...
> Hi
> I have a text file with list of pdb identifier, some like this:
>
> 1AFV
> 1E9N
> 1FJR
> 1HD7
> 1HQJ
>
> I imported this data with
> data = importdata('file.txt')
>
> now I want to use function getpdb:
> getpdb(data(1))
>
> and error message appear:
> Access Number is not a string.
>
> How could I make it work? I try numerous of function but error message still appear;(
> Thanks for help
|