Error in dynare (line 281) evalin('base',[fname '.driver']);

Hi there!
I’m trying to run a DSGE model in Dynare and it prints the following error:

Starting Dynare (version 5.2).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 31 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 1).
Processing outputs …
Preprocessing completed.

Undefined function or variable ‘s’.

Error in mod_file.driver (line 551)

Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);

I open the driver file and indeed there is an “s” in the file.
It’s weird because I’ve being able to run the code without error, but suddenly gives this error.
I’ve set the path to the matlab file in Dynare and everything.
I’d appreciate any help to solve it.
Thanks in advance!

if there is an s in the driver file then there will also be one in your mod file. remove that if it is just a typo and not relevant in your model.

thanks for your answer wmutschl, the code still gives the error even if there is no function or variable ‘s’.
in any case, I have reverted to a previous code that works and does not give any errors.