syntax error 148 during Matlab-gams wgdx

Hi everyone
I am trying to run gams in Matlab using the command gams. In Matlab, the parameters Q_m, Q_p, R_m and R_p; the set t are updated and write in a gdx so that gams can update them while running and give cost.
but unfortunately, I am having the syntax error 148. It seems that Q_m, Q_p, R_m and R_p are referenced with more or less indices as declared.

Kindly help me find where the syntax error is.

here is the excel file, matlab and gams code.
myopic_gams_matlab.gms (10 KB)
gams_matlab.txt (533 Bytes)
data_opt_lookup_inc.xlsx (2 MB)