updates to roms_pv to make it work on MATLAB 2011 versions