I interfaced GAMS win64 30.2.0 software with MATLAB using the procedure read and write. The problem is in reading data. I run the GAMS program from MATLAB R 2010b. successfully. But when I wanted to run the same GAMS file from MATLAB R 2019a, using fid = fopen('matsol.gms','rt+'), it is doest not run. When I change rt+ by r+t the error persist. What caused it and how do I fix it?