I am working on MERRA300.prod.assim.tavg1_2d_rad_Nx in MATLAB.
I am interested in reading & saving data for specified co-ordinates,i have gone through threads and examples,i have tried HDF eos2dump tool to extract co-ordinates, but i am unable to save the DATAFIELD values for specified co-ordinates.
Attached is the code that i have worked on.

Your help will be highly appreciated.

Thanks in advance.