heaviside.m

来自「efg code with matlab」· M 代码 · 共 13 行

M
13
字号
% *************************************************************************
%                 TWO DIMENSIONAL ELEMENT FREE GALERKIN CODE
%                            Nguyen Vinh Phu
%                        LTDS, ENISE, Juillet 2006
% *************************************************************************
function [f,dfdx,dfdy] = heaviside(distance)
% Compute the Heaviside function
% Input : distance is the signed distance to the crack line

f = sign(distance) ;

dfdx = 0 ;
dfdy = 0 ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?