No BSD License
-
Jburgers(t,u,epsilon,D1,D2)
Jacobian
-
burgers(t,u,epsilon,D1,D2)
-
burgersplot(t,y,flag,varargin...
Plot
-
coarserefine(f,intrv,theta,N,...
1-D adaptive residual subsampling method for radial basis function
-
mq(x,xc,c)
1-D multiquadric radial basis function
-
predictor(xp,x,u)
-
adaptburgers_mol.m
-
View all files
from
Adaptive residual subsampling for Radial Basis Functions
by Alfa Heryudono
This simple codes solve initial-boundary value problems particularly Burgers' equation adaptively
|
| mq(x,xc,c) |
function [phi,phi1,phi2,phi3,phi4] = mq(x,xc,c)
% 1-D multiquadric radial basis function
f = @(r,c) sqrt((c*r).^2 + 1);
r = x - xc;
phi = f(r,c);
if nargout > 1
% 1-st derivative
phi1 = (c^2)*r./phi;
if nargout > 2
% 2-nd derivative
phi2 = (c^2)./(phi.^3);
if nargout > 3
% 3-rd derivative
phi3 = -3*(c^4)*r./(phi.^5);
if nargout > 4
% 4-th derivative
phi4 = 12*(c^4)*((c*r).^2-0.25)./(phi.^7);
end
end
end
end
|
|
Contact us at files@mathworks.com