You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
439 B
22 lines
439 B
1 year ago
|
clear
|
||
|
close all
|
||
|
format compact
|
||
|
set(groot,'defaulttextinterpreter','latex');
|
||
|
set(groot, 'defaultAxesTickLabelInterpreter','latex');
|
||
|
set(groot, 'defaultLegendInterpreter','latex');
|
||
|
|
||
|
web_example_1d_data;
|
||
|
x = positions(1, :);
|
||
|
scatter(x, solution, 5, solution, 'filled');
|
||
|
title('$u(x)$');
|
||
|
grid on
|
||
|
box on
|
||
|
colormap jet
|
||
|
xlabel('$x$')
|
||
|
ylabel('$u(x)$')
|
||
|
xlim([-1.1 1.1])
|
||
|
ylim([-0.005 0.04])
|
||
|
yticks(0:0.01:0.04)
|
||
|
|
||
|
|
||
|
exportf(gcf, 'adv-dif-1d.png', '-m3')
|