Hello Mukaddes,
As per my understanding, you would like to read RINEX version 2 file using MATLAB.
Starting from MATLAB R2022a, data from RINEX version three files can be read using the built-in MATLAB function ‘rinexread’. However, direct reading of RINEX version two files is not supported in MATLAB.
Please refer to the following documentation to know about ‘rinexread’ function: https://www.mathworks.com/help/nav/ref/rinexread.html
I hope this resolves the issue you were facing.