Commit b97d2e1c authored by Gidon Lucian Bauer's avatar Gidon Lucian Bauer 🏳
Browse files

kleine Änderungen beim plotten

parent 95d34e83
......@@ -27,7 +27,7 @@ F3 = @lax_wendroff_flux;
%% 1)
if choice == 1
%% Setup
N = 100;
N = 400;
tspan = [0; 1];
xspan = [-1; 1];
......@@ -42,21 +42,18 @@ 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');
nexttile;
figure(2);
pcolor(t2a,x,u2a);
xlabel('t');
ylabel('x');
title('Lax-Friedrichs');
nexttile;
figure(3);
pcolor(t3a,x,u3a);
xlabel('t');
ylabel('x');
......@@ -68,22 +65,19 @@ if choice == 1
[u2b, t2b] = FVM(u0, F2, fb, xspan, tspan, N);
[u3b, t3b] = FVM(u0, F3, fb, xspan, tspan, N);
figure(2);
tiledlayout(2,2);
nexttile;
figure(4);
pcolor(t1b,x,u1b);
xlabel('t');
ylabel('x');
title('Naive');
nexttile;
figure(5);
pcolor(t2b,x,u2b);
xlabel('t');
ylabel('x');
title('Lax-Friedrichs');
nexttile;
figure(6);
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