How to change the output file name with the same input file name but with a different extension ?
8 views (last 30 days)
In line 1, I have read all files with .nc extension. And in the last fourth line, I want to save the output file with the same name but with different extension. For eg. If the input file name is 'BOB_LEHAR_CS_2013112718_TRMM.nc' then i want to save the output file as 'BOB_LEHAR_CS_2013112718_TRMM.grd' How to do this. Please help me.
for j =1:2
for i =1: radius/dx