I think your line is supposed to be:
f = netcdf.open('algiers_bay.grd','r');
Because netcdf on it's own doesn't do anything, it is a library of functions that are accessed by prefixing with 'netcdf'.
Hope this helps.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!