?? err_helmholtz.m
字號:
% Error distributions in 3D figure for two dimensional problems
% n number of node at each direction
% x are coordinate, z1 & z2 are absolute and relative errors
function err_helmholtz(n,x,y,z1,z2)
colordef black; % set backgroud as black and axises as white
colormap(hsv); % a color spectrum associated with numerical values
mesh(x,y,z1) % generate absolute error distribution 3D figure
hidden off % exposure the hidden part of figure
xlabel('x');
ylabel('y');
zlabel('absolute error');
title(['Absolute error for a Helmholtz case using ',num2str(n),'*',num2str(n), ' nodes']);
pause
mesh(x,y,z2) % generate absolute error distribution 3D figure
hidden off % exposure the hidden part of figure
xlabel('x');
ylabel('y');
zlabel('relative error');
title(['Relative error for Xing`s 2D Laplacian using ',num2str(n),'*',num2str(n), ' nodes']);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -