Commit 0b64d6d4 authored by Gidon Bauer's avatar Gidon Bauer
Browse files

Actually nothing new...

parent b97d2e1c
......@@ -42,18 +42,21 @@ if choice == 1
[u3a, t3a] = FVM(u0, F3, fa, xspan, tspan, N);
figure(1);
tiledlayout(2,2);
nexttile;
pcolor(t1a,x,u1a);
xlabel('t');
ylabel('x');
title('Naive');
figure(2);
nexttile;
pcolor(t2a,x,u2a);
xlabel('t');
ylabel('x');
title('Lax-Friedrichs');
figure(3);
nexttile;
pcolor(t3a,x,u3a);
xlabel('t');
ylabel('x');
......@@ -65,19 +68,21 @@ if choice == 1
[u2b, t2b] = FVM(u0, F2, fb, xspan, tspan, N);
[u3b, t3b] = FVM(u0, F3, fb, xspan, tspan, N);
figure(4);
figure(2);
tiledlayout(2,2);
nexttile;
pcolor(t1b,x,u1b);
xlabel('t');
ylabel('x');
title('Naive');
figure(5);
nexttile;
pcolor(t2b,x,u2b);
xlabel('t');
ylabel('x');
title('Lax-Friedrichs');
figure(6);
nexttile;
pcolor(t3b,x,u3b);
xlabel('t');
ylabel('x');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment