Skip to content

Commit ccc27ae

Browse files
authored
Update convergence.m
1 parent 580c510 commit ccc27ae

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

convergence.m

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
clear
22

3-
N=5:1:20;
3+
N=5:5:40;
44
E=zeros(1,length(N));
55

66
for i=1:length(N)
77
E(i)=BVP(N(i));
88
end
99

10-
semilogy(N,E)
11-
xlabel('grid size [N]')
12-
ylabel('discretization error')
10+
semilogy(N,E,'linewidth',3)
11+
xlabel('grid size [N]','FontSize',16)
12+
ylabel('discretization error','FontSize',16)
13+
set(gca,'FontSize',16)
14+
grid on
15+
print('exp.svg', '-dsvg', '-r600')

0 commit comments

Comments
 (0)