| xvelocity.m.html | |
| Source file: xvelocity.m | |
| Directory: /Users/rjl/git/rjleveque/clawpack-4.6.2/matlab | |
| Converted: Wed May 30 2012 at 13:02:52 using clawcode2html | |
| This documentation file will not reflect any later changes in the source file. |
function u = xvelocity(data) % % Compute the x-velocity from the data % for problems where the second component is the x-momentum and the % first component is the "density" (e.g. Euler, shallow water equations) u = data(:,2)./data(:,1);