/matlab/getlinehandles.m

http://github.com/clawpack/clawpack-4.x · Objective C · 16 lines · 11 code · 5 blank · 0 comment · 4 complexity · 93600206ce8206249b31f307248432f3 MD5 · raw file

  1. function h = getlinehandles(level)
  2. % Internal matlab routine
  3. if (nargin == 0)
  4. level = 1;
  5. end;
  6. if (length(level) > 1)
  7. error(['getlinehandles : You can only get handles for a single ',...
  8. 'level of amr data at a time']);
  9. end;
  10. amrlines = get_lines;
  11. h = amrlines{level};