I am trying to run my code with the VFI toolkit and I keep getting this error message in several lines.
I get it for vfoptions.parallel for simoptions.
and for Params.beta (beta being an example of a parameter).
Likely you have created Params as something other than a structure, hence you cannot call Params.beta. (What matlab calls ‘structures’ can be accessed using the dot indexing, you cannot for example use the dot indexing with a matrix.)
If you run
whos Params
what does it say is the ‘Class’ of Params? (It should say ‘struct’)
For example, if you had the code
Params=3;
Params.beta=0.9;
it would generate the error you describe, because the first line creates Params as a matrix/scalar (class: double). The second line then tries to treat Params as if it was a structure.
If this doesn’t solve the error then email me a copy so I can take a quick look.