سلام
براي تقريب تابع ميتوني از روشهاي ديگهاي مثل اسپلاين و شبكههاي عصبي و... استفاده كني.
براي انتگرالگيري برداري هم ببين دستور زير ميتونه بدردت بخوره:
trapz
Trapezoidal numerical integration
Syntax
Z = trapz(Y)
Z = trapz(X,Y)
Z = trapz(...,dim)
Description
Z = trapz(Y) computes an approximation of the integral of Y via the trapezoidal method (with unit spacing). To compute the integral for spacing other than one, multiply Z by the spacing increment. Input Y can be complex
و همچنين دستور زير:
cumtrapz
Cumulative trapezoidal numerical integration
Syntax
Z = cumtrapz(Y)
Z = cumtrapz(X,Y)
Z = cumtrapz(X,Y,dim) or cumtrapz(Y,dim)
Description
Z = cumtrapz(Y) computes an approximation of the cumulative integral of Y via the trapezoidal method with unit spacing. To compute the integral with other than unit spacing, multiply Z by the spacing increment. Input Y can be complex.