I am getting the following error when I run extract_bath.m. I changed the Llon, Rlon, Blat, and Tlat to the values I needed.
??? Error using ==> version
Too many output arguments.
Error in ==> mexcdf at 96
v = version;
Error in ==> nc_dim at 27
[ncid]=mexcdf('ncopen',fname,'nc_nowrite');
Error in ==> nc_read at 38
[dnames,dsizes]=nc_dim(fname);
Error in ==> x_etopo5 at 37
x=nc_read(Fname,'topo_lon');
Error in ==> extract_bath at 44
[lon,lat,h]=x_etopo5(Llon,Rlon,Blat,Tlat,Bname);
Can anyone tell me what I am doing wrong?