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

Failed to solve perfect foresight model

Unrecognized function or variable ‘k’.

Error in transitional_dynamics_pp1.driver (line 354)
plot (t,k);

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

Without the file it is impossible to tell.

My apologies, please find the file attached
transitional_dynamics_pp1 (1).mod (5.9 KB)

I updated part of the syntax. k and m should most probably be predetermined. The model still does not satisfy the Blanchard-Kahn conditions. This suggests a timing problem. You need to fix that before continuing.
transitional_dynamics_pp1.mod (6.0 KB)