Display a Solution of the Shallow Water Equations in 1D

SHALLOW_WATER_1D_DISPLAY is a MATLAB program which can display a solution of the shallow water equations in 1D, generally as computed by the program shallow_water_1d.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


SHALLOW_WATER_1D_DISPLAY is available in a MATLAB version.

Related Data and Programs:

SHALLOW_WATER_1D, a MATLAB program which solves the 1D shallow water equations.


  1. Cleve Moler,
    Experiments with MATLAB,

Source Code:

Examples and Tests:

The command

        [ h_array, uh_array, x, t ] = shallow_water_1d ( 41, 100, 1.0, 0.2, 9.8 )
created the files:

You can go up one level to the MATLAB source codes.

Last modified on 11 June 2012.