Error using

Hi everyone
I’m having Problem running this file and I’m getting this error

Error using
Conversion to from char is not possible.

Error in compute_irf (line 15)
dum_name2 = [char(M_.endo_names(ivariable,:)), '', char(M.exo_names(ishock,:)), ‘_’, text];

Error in JEEM2024.driver (line 1094)

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

Thank you for your guidance
compute_irf.m (717 Bytes)
JEEM2024.mod (3.8 KB)

Without the compute_irf.m , the code works. What are you trying to accomplish with that function?

Yes, but to define another function in my model, this file must be run first

My problem is solved, thanks