-2
power = 2;
sigma=0.1;
a = 1 /(sigma*sqrt(2*pi));
c= (sigma^2)*2;
syms x y
f = exp(-(x.^power)./c);
dfdx = diff(f,x);
c1 = diff(dfdx,x);
f = exp(-(y.^power)./c);
dfdy = diff(f,y);
c2 = diff(dfdy,y);
meancurvature = (c1 + c2)./ 2;
gaussiancuravture =(c1 .* c2);
mean_curv = integral2(meancurvature, -Inf,+Inf, -Inf, +Inf)
gauss_curv = integral2(gaussiancurvature, -Inf,+Inf, -Inf, +Inf)
我在我有限的知識MATLAB想盡一切和谷歌搜索來尋找答案隨附的錯誤了:數值雙積分函數處理
使用integral2
第一個輸入參數誤差必須是一個功能句柄。