
% Some commands to print grids in an animated way using SOR.

% First initializa the surface variable u as a zero matrix.
    u= zeros(n2,n1);

% Then, create a figure window.
    figure;

%   To produce a full screen figure if yoou want
    figure('units','normalized','outerposition',[0 0 1 1]);
 
    % actual grid figure
    orient landscape;
    mesh(x,y,u,'EdgeColor','black');
    xlabel('x')
    ylabel('y')
    view(0,90);
    pause(.1);