Dirichlet.m 102 B

123456
  1. function u = Dirichlet(u)
  2. u(1, :) = 0;
  3. u(end, :) = 0;
  4. u(:, 1) = 0;
  5. u(:, end) = 0;
  6. end